Skip to content

Instantly share code, notes, and snippets.

@y4code
Last active December 28, 2017 09:19
Show Gist options
  • Save y4code/edc24a0034ad3a90e4909591a1d6cfc8 to your computer and use it in GitHub Desktop.
Save y4code/edc24a0034ad3a90e4909591a1d6cfc8 to your computer and use it in GitHub Desktop.
Karabiner Configuration XML
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>FirePadInc</vendorname>
<vendorid>0x1532</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>FirePad_V1</productname>
<productid>0x5044</productid>
</deviceproductdef>
<item>
<name>Command_L to Option_L(仅在Firepad下)</name>
<identifier>hehe1</identifier>
<device_only>DeviceVendor::FirePadInc, DeviceProduct::FirePad_V1</device_only>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
</item>
<item>
<name>OptionL to Command_L(仅在Firepad下)</name>
<identifier>hehe2</identifier>
<device_only>DeviceVendor::FirePadInc, DeviceProduct::FirePad_V1</device_only>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
</item>
<item>
<name>AltR to Command_R(仅在Firepad下)</name>
<identifier>hehe3</identifier>
<device_only>DeviceVendor::FirePadInc, DeviceProduct::FirePad_V1</device_only>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen>
</item>
<item>
<name>使用右COMMAND_R来修饰ijkl作为方向键</name>
<identifier>private.direction_key</identifier>
<autogen>
__KeyToKey__
KeyCode::J, ModifierFlag::COMMAND_R,
KeyCode::CURSOR_LEFT
</autogen>
<autogen>
__KeyToKey__
KeyCode::K, ModifierFlag::COMMAND_R,
KeyCode::CURSOR_DOWN
</autogen>
<autogen>
__KeyToKey__
KeyCode::I, ModifierFlag::COMMAND_R,
KeyCode::CURSOR_UP
</autogen>
<autogen>
__KeyToKey__
KeyCode::L, ModifierFlag::COMMAND_R,
KeyCode::CURSOR_RIGHT
</autogen>
</item>
<item>
<name>使用Fn来修饰ijkl作为方向键</name>
<identifier>private.direction_key_</identifier>
<autogen>
__KeyToKey__
KeyCode::J, ModifierFlag::FN,
KeyCode::CURSOR_LEFT
</autogen>
<autogen>
__KeyToKey__
KeyCode::K, ModifierFlag::FN,
KeyCode::CURSOR_DOWN
</autogen>
<autogen>
__KeyToKey__
KeyCode::I, ModifierFlag::FN,
KeyCode::CURSOR_UP
</autogen>
<autogen>
__KeyToKey__
KeyCode::L, ModifierFlag::FN,
KeyCode::CURSOR_RIGHT
</autogen>
</item>
<item>
<name>TrackPad上网专用</name>
<identifier>识别符</identifier>
<!-- <autogen>
__KeyToKey__
KeyCode::RawValue::0x9,
KeyCode::F
</autogen> -->
<autogen>__KeyToKey__ KeyCode::Q, PointingButton::LEFT </autogen>
<!-- <autogen>
__KeyToKey__
KeyCode::K, ModifierFlag::COMMAND_R,
KeyCode::CURSOR_DOWN
</autogen> -->
</item>
</root>
j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment