Skip to content

Instantly share code, notes, and snippets.

@zhgqthomas
Forked from KeeperPat/private.xml
Created September 5, 2017 05:00
Show Gist options
  • Save zhgqthomas/cc9973ec08b33be67a03fac7964f08c0 to your computer and use it in GitHub Desktop.
Save zhgqthomas/cc9973ec08b33be67a03fac7964f08c0 to your computer and use it in GitHub Desktop.
Karabiner Configuration to Remap Surface Ergonomic Keyboard Alt and Windows Keys for Mac
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Microsoft</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>SurfaceErgonomic</productname>
<productid>0x0817</productid>
</deviceproductdef>
<item>
<name>Remap Surface Ergonomic Alt to Command</name>
<appendix>This maps the Microsoft Surface Ergonomic's ALT Key to Command.</appendix>
<identifier>surface_ergonomic.alt_to_command</identifier>
<device_only>DeviceVendor::Microsoft,
DeviceProduct::SurfaceErgonomic</device_only>
<autogen>
--KeyToKey--
KeyCode::OPTION_L,
KeyCode::COMMAND_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::OPTION_R,
KeyCode::COMMAND_R
</autogen>
</item>
<item>
<name>Remap Surface Ergonomic Windows to Option</name>
<appendix>This maps the Microsoft Surface Ergonomic's Windows Key to Option.</appendix>
<identifier>surface_ergonomic.windows_to_option</identifier>
<device_only>DeviceVendor::Microsoft,
DeviceProduct::SurfaceErgonomic</device_only>
<autogen>
--KeyToKey--
KeyCode::COMMAND_L,
KeyCode::OPTION_L
</autogen>
<autogen>
--KeyToKey--
KeyCode::COMMAND_R,
KeyCode::OPTION_R
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment