shortcut to toggle fn keys in macOS
Problem: create a shortcut to toggle “Use F1, F2, etc. keys as standard function keys” in macOS Sierra.
Here’s the solution.
- Download fntoggle program and save it to /usr/local/bin, make it executable.
- In Automator create a new Service.
- Select “no input” for recieving
- Add “Run Shell Script” action with command
/usr/local/bin/fntoggle ; echo "ok"
- Save it as “fntoggle”
- In System Preferences/Keyboard/Shortcuts find fntoggle under Services, sub-section General. Click on right column (with text none) to assign new shortcut.