Skip to content

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

License

Notifications You must be signed in to change notification settings

developerllazy/macos-fn-toggle

 
 

Repository files navigation

fn.app

This is an Automator app that toggles the "Use all F1, F2, etc. keys as standard function keys" option in macOS System Preferences. A task that is tedious when done often (which programmers tend to do).

All it does is that it executes this AppleScript snippet:

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.app — the app containing the script that toggles the setting.
  • ~/Library/Services/fn.workflow — a service that allows fn.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 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.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.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 service

keybard-shortcut

Contact

Jakub Roztočil

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 100.0%