Skip to content

Instantly share code, notes, and snippets.

@rogerhu
Last active August 29, 2015 14:25
Show Gist options
  • Save rogerhu/8118d97cfc3b687f5c56 to your computer and use it in GitHub Desktop.
Save rogerhu/8118d97cfc3b687f5c56 to your computer and use it in GitHub Desktop.
~/Library/Application Support/Karabiner/private.xml
<?xml version="1.0"?>
<root>
<symbol_map type="KeyCode" name="PAGE_UP" value="0x74" />
<symbol_map type="KeyCode" name="PAGE_DOWN" value="0x79" />
<windownamedef>
<name>emacs_terminal</name>
<regex>emacs</regex>
</windownamedef>
<appdef>
<appname>PyCharm</appname>
<equal>com.jetbrains.pycharm</equal>
</appdef>
<appdef>
<appname>Atom</appname>
<equal>com.github.atom</equal>
</appdef>
<appdef>
<appname>IntelliJ</appname>
<equal>com.jetbrains.intellij</equal>
</appdef>
<appdef>
<appname>AndroidStudio</appname>
<equal>com.google.android.studio</equal>
</appdef>
<appdef>
<appname>Chrome</appname>
<equal>com.google.Chrome</equal>
</appdef>
<appdef>
<appname>XCode</appname>
<equal>com.apple.dt.Xcode</equal>
</appdef>
<appdef>
<appname>EverNote</appname>
<equal>com.evernote.Evernote</equal>
</appdef>
<devicevendordef>
<vendorname>KINESIS</vendorname>
<vendorid>0x518</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>ADVANTAGE</productname>
<productid>0x0001</productid> <!--0x518 0x0001 -->
</deviceproductdef>
<devicevendordef>
<vendorname>KINESIS2</vendorname>
<vendorid>0x13ba</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>CLASSIC</productname>
<productid>0x0018</productid> <!--13ba 0x0018-->
</deviceproductdef>
<include path="{{ ENV_HOME }}/Dropbox/Keyboard/core.xml">
<replacementdef>
<replacementname>PRODUCT</replacementname>
<replacementvalue>DeviceVendor::KINESIS, DeviceVendor::KINESIS2</replacementvalue>
</replacementdef>
</include>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment