Skip to content

Instantly share code, notes, and snippets.

@ShiningRay
Created April 2, 2013 05:05
Show Gist options
  • Save ShiningRay/5290061 to your computer and use it in GitHub Desktop.
Save ShiningRay/5290061 to your computer and use it in GitHub Desktop.
Use alt+wasd for curor moving on HHKB
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>TOPRE</vendorname>
<vendorid>0x0853</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>HHKB_PRO2</productname>
<productid>0x0100</productid>
</deviceproductdef>
<item>
<name>Private Config</name>
<list>
<item>
<name>For HHKb Pro 2</name>
<appendix>Compatible models are:</appendix>
<appendix> PD-KB400B/PD-KB400W/PD-KB400BN/PD-KB400WN</appendix>
<appendix> VendorID=0x0853 ProductID=0x0100</appendix>
<appendix>Set your DIP switch to 01X1XX to enable Macintosh mode</appendix>
<appendix>Use left COMMAND as Fn for most convenience</appendix>
<list>
<item>
<name>use WASD</name>
<identifier>private.wasd</identifier>
<device_only>DeviceVendor::TOPRE, DeviceProduct::HHKB_PRO2</device_only>
<autogen>__KeyToKey__ KeyCode::W, ModifierFlag::OPTION_R , KeyCode::CURSOR_UP</autogen>
<autogen>__KeyToKey__ KeyCode::S, ModifierFlag::OPTION_R , KeyCode::CURSOR_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::A, ModifierFlag::OPTION_R , KeyCode::CURSOR_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::D, ModifierFlag::OPTION_R , KeyCode::CURSOR_RIGHT</autogen>
</item>
</list>
</item>
</list>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment