Skip to content

Instantly share code, notes, and snippets.

@hirofumi
Last active February 4, 2016 16:40
Show Gist options
  • Save hirofumi/18124ac97ba5c57b13ab to your computer and use it in GitHub Desktop.
Save hirofumi/18124ac97ba5c57b13ab to your computer and use it in GitHub Desktop.
My Karabiner Configuration for ThinkPad Compact USB Keyboard with TrackPoint
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Lenovo</vendorname>
<vendorid>0x17ef</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>ThinkPad_Compact_USB_Keyboard_with_TrackPoint</productname>
<productid>0x6047</productid>
</deviceproductdef>
<item>
<name>MiddleClick to Command_R</name>
<identifier>remap.buttonM_to_commandR</identifier>
<device_only>
DeviceVendor::Lenovo,
DeviceProduct::ThinkPad_Compact_USB_Keyboard_with_TrackPoint
</device_only>
<autogen>
__KeyToKey__
PointingButton::MIDDLE,
KeyCode::COMMAND_R
</autogen>
</item>
<item>
<name>MiddleClick to Command_R (+ When you click middle button only, send Command_L + LeftClick)</name>
<identifier>remap.buttonM_to_commandL_buttonL_or_commandR</identifier>
<device_only>
DeviceVendor::Lenovo,
DeviceProduct::ThinkPad_Compact_USB_Keyboard_with_TrackPoint
</device_only>
<autogen>
__KeyOverlaidModifier__
PointingButton::MIDDLE,
KeyCode::COMMAND_R,
PointingButton::LEFT, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>MiddleClick to Command_R (+ When you double click middle button, send MiddleClick)</name>
<identifier>remap.buttonM_to_buttonM_or_commandR</identifier>
<device_only>
DeviceVendor::Lenovo,
DeviceProduct::ThinkPad_Compact_USB_Keyboard_with_TrackPoint
</device_only>
<autogen>
__DoublePressModifier__
PointingButton::MIDDLE,
KeyCode::COMMAND_R,
PointingButton::MIDDLE
</autogen>
</item>
<item>
<name>Command_R + LeftClick to CommandL + [</name>
<identifier>remap.commandR_buttonL_to_commandL_bracketL</identifier>
<device_only>
DeviceVendor::Lenovo,
DeviceProduct::ThinkPad_Compact_USB_Keyboard_with_TrackPoint
</device_only>
<autogen>
__KeyToKey__
PointingButton::LEFT, ModifierFlag::COMMAND_R,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>Command_R + RightClick to CommandL + ]</name>
<identifier>remap.commandR_buttonR_to_commandL_bracketR</identifier>
<device_only>
DeviceVendor::Lenovo,
DeviceProduct::ThinkPad_Compact_USB_Keyboard_with_TrackPoint
</device_only>
<autogen>
__KeyToKey__
PointingButton::RIGHT, ModifierFlag::COMMAND_R,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment