Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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