Skip to content

Instantly share code, notes, and snippets.

@daneden
Created December 1, 2015 00:25
Show Gist options
  • Star 57 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save daneden/03cbecac9f02720e3723 to your computer and use it in GitHub Desktop.
Save daneden/03cbecac9f02720e3723 to your computer and use it in GitHub Desktop.
Remap Caps Lock to Emoji on Mac

How to remap the caps lock key to the emoji selector on Mac

  1. Go to System Preferences -> Keyboard -> Modifier Keys...
  2. Change “Caps Lock” to “No action”
  3. Install Seil
  4. Change the Caps Lock key in Seil to keyCode 80 (F19)
  5. Install Karabiner
  6. Open Karabiner and go to Misc & Uninstall -> Open private.xml
  7. Copy the contents of this gist's example to the XML file and save
  8. In Karabiner, go to Change Keys -> Reload XML
  9. Enable “F19 to Emoji”
  10. 🎉
<?xml version="1.0"?>
<root>
<item>
<name>F19 to Emoji</name>
<appendix>(F19 to Emoji)</appendix>
<identifier>private.f192emoji</identifier>
<autogen>
--KeyToKey--
KeyCode::F19,
KeyCode::SPACE, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment