Skip to content

Instantly share code, notes, and snippets.

@anotheredward
Created August 30, 2016 00:51
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 anotheredward/9f6bb16fd207b0ed34a72d3826871292 to your computer and use it in GitHub Desktop.
Save anotheredward/9f6bb16fd207b0ed34a72d3826871292 to your computer and use it in GitHub Desktop.
Karabiner use DX footswitch for modifier keys
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>RDING</vendorname>
<vendorid>0x0c45</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>FOOTSWITCH</productname>
<productid>0x7403</productid>
</deviceproductdef>
<item>
<name>Foot Pedal swap c to CMD</name>
<identifier>private.foot_pedal_swap_c_to_CMD</identifier>
<device_only>DeviceVendor::RDING, DeviceProduct::FOOTSWITCH</device_only>
<autogen>__KeyToKey__ KeyCode::C, KeyCode::COMMAND_L</autogen>
</item>
</root>
@anotheredward
Copy link
Author

For this foot pedal:
http://www.dx.com/p/usb-triple-action-foot-switch-keyboard-control-foot-pedal-56508#.V8TVRJN95TY

Can't recommend it as two of the switches are broken though :(

@shreevatsa
Copy link

Thank you! I bought it from here https://www.amazon.com/gp/product/B008YPLFF2/ but the vendorid and productid match. And by following what you did above, I've been able to map it to CONTROL_L.

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