Skip to content

Instantly share code, notes, and snippets.

@bps
Created April 9, 2014 16:00
Show Gist options
  • Save bps/10286288 to your computer and use it in GitHub Desktop.
Save bps/10286288 to your computer and use it in GitHub Desktop.
Fix modifier keys on MS Sculpt Ergonomic keyboard
<?xml version="1.0"?>
<root>
<!--
I found that remapping Cmd and Alt via the Keyboard prefs didn't
properly remap right Alt, so we'll do it here. Also map the
application key to right Alt.
-->
<devicevendordef>
<vendorname>MICROSOFT</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MS_SCULPT_ERGO_KEYBOARD</productname>
<productid>0x07a5</productid>
</deviceproductdef>
<item>
<name>Fix MS Sculpt Ergo keyboard modifier keys</name>
<appendix>Changes Alt keys to Cmd, Windows and application keys to Alt</appendix>
<identifier>private.fix_ms_sculpt_ergo</identifier>
<device_only>DeviceVendor::MICROSOFT, DeviceProduct::MS_SCULPT_ERGO_KEYBOARD</device_only>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen>
<autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::OPTION_R</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment