Skip to content

Instantly share code, notes, and snippets.

@ryantuck
Last active November 14, 2016 16:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryantuck/48341239a6820e7ec79f to your computer and use it in GitHub Desktop.
Save ryantuck/48341239a6820e7ec79f to your computer and use it in GitHub Desktop.

how to be leet with your keyboard remappings

0. install seil and karabiner.

1. change esc to shift + cmd in ~/Library/Application Support/Karabiner/private.xml:

<?xml version="1.0"?>
<root>
<item>
    <name>escape to shift+cmd</name>
    <identifier>private.esc_to_shift_cmd</identifier>
    <autogen>
        __KeyToKey__
        KeyCode::ESCAPE,
        KeyCode::SHIFT_L, ModifierFlag::COMMAND_L
    </autogen>
  </item>
</root>

then, in karabiner, hit reload xml and check your newly created setting (should be at the top of the list).

2. chage caps lock to esc on tap and ctrl on hold

  1. system preferences > keyboard > modifier keys > set caps lock to 'no action'
  2. in seil, change caps lock keycode to 80 (keycode for F19).
  3. in karabiner, select F19 to escape and control.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment