Skip to content

Instantly share code, notes, and snippets.

@svenwin
Created August 19, 2016 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svenwin/ff7ed1074e3e41644eb146ea0c34486a to your computer and use it in GitHub Desktop.
Save svenwin/ff7ed1074e3e41644eb146ea0c34486a to your computer and use it in GitHub Desktop.
Remap Lenovo USB to Mac
<?xml version="1.0"?>
<root>
<item>
<name>Lenovo USB for Mac</name>
<item>
<name>Remap CMD + Alt (sticky)</name>
<identifier>remap.print_to_option_r</identifier>
<device_only>DeviceVendor::RawValue::0x17ef, DeviceProduct::RawValue::0x6047</device_only>
<autogen>__KeyOverlaidModifier__ KeyCode::OPTION_R, KeyCode::COMMAND_R, KeyCode::VK_STICKY_ACTIVE_MODIFIERS_FORCE_ON, KeyCode::VK_STICKY_COMMAND_R</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F13, KeyCode::OPTION_R, KeyCode::VK_STICKY_ACTIVE_MODIFIERS_FORCE_ON, KeyCode::VK_STICKY_OPTION_R</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::OPTION_L, KeyCode::COMMAND_L, KeyCode::VK_STICKY_ACTIVE_MODIFIERS_FORCE_ON, KeyCode::VK_STICKY_COMMAND_L</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::COMMAND_L, KeyCode::OPTION_L, KeyCode::VK_STICKY_ACTIVE_MODIFIERS_FORCE_ON, KeyCode::VK_STICKY_OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::F12, KeyCode::VK_CONSUMERKEY_EJECT</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment