• Stars
    star
    220
  • Rank 180,422 (Top 4 %)
  • Language Makefile
  • License
    MIT License
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A macOS app to quickly toggle the behavior of the fn key.

fn-toggle.app

fn-toggle.app programmatically toggles the "Use all F1, F2, etc. keys as standard function keys" option in macOS System Preferences. A task that is tedious when done manually, which especially keyboard-heavy users, such as programmers, tend to do very often.

keyboard settings

All it does is that it executes this AppleScript snippet through an Automator-created app:

tell application "System Preferences"
	reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
end tell
tell application "System Events" to tell process "System Preferences"
	click checkbox 1 of tab group 1 of window 1
end tell
quit application "System Preferences"

Installation

Run make install which installs the following files:

  • /Applications/fn-toggle.app β€” the app containing the script that toggles the setting.
  • ~/Library/Services/fn-toggle.workflow β€” a service that allows fn-toggle.app to be invoked with a keyboard shortcut.

(You can run make clean to remove those files again.)

In OS X 10.9 (Mavericks) and later, you also need to:

  1. Open the fn-toggle app once either from spotlight or from Applications folder (it will do nothing but it's needed for the app to appear in the accessibility menu in step 3)
  2. Go to System Preferences > Security & Privacy > Accessibility > Privacy
  3. Click the lock to make changes and tick fn-toggle.app under Allow the apps below to control your computer.

preferences

Usage

Run the app. The fastest way to do it is from Spotlight:

  1. Press ⌘ + space (or similar) to open Spotlight.
  2. Type fn, fn-toggle.app should be the Top Hit.
  3. Hit Enter.

Enable Keyboard shortcut

  1. Go to System Preferences > Keyboard > Shortcuts > Services > General (at the end of the list) and assign a new shortcut to fn-toggle service

keybard-shortcut

Contact

Jakub Roztočil

Alternatives

  • https://github.com/Pyroh/Fluor β€” a really nice menubar application that allows you to automatically change the behaviour of the keyboard's fn keys depending on the active application.

More Repositories

1

rrule

JavaScript library for working with recurrence rules for calendar dates as defined in the iCalendar RFC and more.
TypeScript
3,188
star
2

cloudtunes

Web-based music player for the cloud ☁️ 🎢 Play music from YouTube, Dropbox, etc.
CoffeeScript
2,488
star
3

cointrol

ΰΈΏ Bitcoin trading bot with a real-time dashboard for Bitstamp.
Python
1,448
star
4

chat

A simple chat app created to experiment with Redis, Gevent, Flask & Server-Sent Events.
Python
246
star
5

django-settings-export

Access Django settings from templates the right wayβ„’
Python
187
star
6

podcats

🎧 🐈🐈🐈 Podcats generates RSS feeds for podcast episodes from local audio files and, optionally, exposes both via a built-in web server.
Python
126
star
7

geotagger

πŸ“Έ πŸ—Ί Geotag your photos from GPS-less cameras with your phone's location history data
Python
37
star
8

lastfmclient

Python client for the Last.fm API. Non-blocking client for Tornado included.
Python
23
star
9

html2texy

Converts HTML to Texy!
PHP
16
star
10

grfs

FUSE filesystem implementation for accessing photos on Ricoh GRII camera over WiFi
Python
15
star
11

publog

The Occasional Publog
9
star
12

cn

Simple CLI tool that notifies you once a server becomes reachable.
Python
8
star
13

nose-pattern-exclude

Nose plugin for excluding directories and files from test discovery by paths and glob patterns.
Python
5
star
14

radio

YouTube radio.
JavaScript
3
star
15

advent-of-code-2018

Python
1
star
16

Selectors

Implementation of CSS3 selectors in JavaScript.
JavaScript
1
star