Skip to content

Instantly share code, notes, and snippets.

@aripalo
Last active August 29, 2015 14:05
Show Gist options
  • Save aripalo/194214927795329e3cdd to your computer and use it in GitHub Desktop.
Save aripalo/194214927795329e3cdd to your computer and use it in GitHub Desktop.
Remap Mac OS X Caps Lock key as ⌘ + ←

Remap OS X Caps Lock key as ⌘ + ←

Changes Caps Lock key behaviour to move cursor to beginning of current text line, e.g. the same as +

Follows the tutorial from: http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/

  1. Download & install Seil - formerly known as PCKeyboardHack
  2. Download & install Karabiner - formerly known as KeyRemap4MacBook
  3. In Seil set Change Caps Lock to keycode 80 (F19)
  4. In Karabiner's Misc & Uninstall tab, select Open private.xml and replace its contents with the contents of private.xml in this gist.
  5. Go to Change Key tab and enable the F19 to CMD+Left
  6. ...?
  7. Profit.
<?xml version="1.0"?>
<root>
<item>
<name>F19 to CMD+LEFT</name>
<appendix>F19 to CMD+LEFt</appendix>
<identifier>private.f19toCMDLEFT</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment