Skip to content

Instantly share code, notes, and snippets.

@bmihelac
Created March 23, 2015 10:27
Show Gist options
  • Save bmihelac/15401a64f7985cd35293 to your computer and use it in GitHub Desktop.
Save bmihelac/15401a64f7985cd35293 to your computer and use it in GitHub Desktop.
Karabiner app based config - caps to esc or caps
<?xml version="1.0"?>
<root>
<appdef>
<appname>CHROME</appname>
<equal>com.google.Chrome.canary</equal>
</appdef>
<item>
<name>CAPS TO CAPS in Chrome Canary</name>
<identifier>private.app_chrome_caps_caps</identifier>
<only>CHROME</only>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::CAPSLOCK</autogen>
</item>
<item>
<name>CAPS TO ESC in all but Chrome Canary</name>
<identifier>private.app_chrome_caps_esc</identifier>
<not>CHROME</not>
<autogen>__KeyToKey__ KeyCode::F19, KeyCode::ESCAPE</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment