Skip to content

Instantly share code, notes, and snippets.

@odenak
Last active March 24, 2019 18:08
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odenak/d2860535c96d94e76c70d0aabe57593f to your computer and use it in GitHub Desktop.
Save odenak/d2860535c96d94e76c70d0aabe57593f to your computer and use it in GitHub Desktop.
Karabiner Swap CMD and OPTION for Varmilo VB87M Bluetooth Keyboard VID: 0x1915, PID: 0xEEEE
<?xml version="1.0"?>
<root>
<item>
<name>Swap Command and Option for Varmilo VB87M Bluetooth Keyboard (vid/pid: 0x1915,0xEEEE)</name>
<identifier>private.swap_cmd_option_varmilo_vb87m</identifier>
<block>
<device_only>DeviceVendor::RawValue::0x1915, DeviceProduct::RawValue::0xEEEE</device_only>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_R</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen>
</block>
</item>
</root>
@odenak
Copy link
Author

odenak commented Aug 11, 2016

This will swap CMD and OPTION for this specific keyboard. You can of course change the PID and VID RawValue to match your own keyboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment