Skip to content

Instantly share code, notes, and snippets.

@uchida
Created July 1, 2016 19:46
Show Gist options
  • Save uchida/99d7ebb9ead3b3f5e1c29aff655dd7f5 to your computer and use it in GitHub Desktop.
Save uchida/99d7ebb9ead3b3f5e1c29aff655dd7f5 to your computer and use it in GitHub Desktop.
karabiner private.xml to remap cmd/opt/app key for MS keyborad
<?xml version="1.0"?>
<root>
<item>
<name>private items for MS Keyboard</name>
<item>
<name>Option_L to Command_L for MS Keyboard</name>
<identifier>private.micorosoft.opt_l-to-cmd-l</identifier>
<device_only>DeviceVendor::MICROSOFT</device_only>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
</item>
<item>
<name>Option_R to Command_R for MS Keyboard</name>
<identifier>private.micorosoft.opt_r-to-cmd-r</identifier>
<device_only>DeviceVendor::MICROSOFT</device_only>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen>
</item>
<item>
<name>Command_L to Option_L for MS Keyboard</name>
<identifier>private.micorosoft.cmd_l-to-opt-l</identifier>
<device_only>DeviceVendor::MICROSOFT</device_only>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
</item>
<item>
<name>Application to Command_R for MS Keyboard</name>
<identifier>private.microsoft.app-to-opt_r</identifier>
<device_only>DeviceVendor::MICROSOFT</device_only>
<autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_R</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment