Skip to content

Instantly share code, notes, and snippets.

@pilhokim
Last active July 6, 2016 06:58
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 pilhokim/fabdca261f1c8b9a3bba271a6e951935 to your computer and use it in GitHub Desktop.
Save pilhokim/fabdca261f1c8b9a3bba271a6e951935 to your computer and use it in GitHub Desktop.
Karabiner private.xml setting for Microsoft Sculpt ergonomic keyboard/mouse and IME switching.
<?xml version="1.0"?>
<root>
<deviceproductdef>
<productname>SCULPT_ERGONOMIC</productname>
<productid>0x07a5</productid>
</deviceproductdef>
<item>
<name>
MS Sculpt mouse reverse scroll
</name>
<identifier>
sculpt.reverse_vertical_scrolling
</identifier>
<not>SystemUIServer</not>
<device_only>
DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_ERGONOMIC
</device_only>
<autogen>
__FlipScrollWheel__
Option::FLIPSCROLLWHEEL_VERTICAL
</autogen>
</item>
<item>
<name>
MS Sculpt mouse button mapping
</name>
<identifier>
sculpt.mouse_mapping
</identifier>
<device_only>
DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_ERGONOMIC
</device_only>
<autogen>
__KeyToKey__
PointingButton::BUTTON4,
KeyCode::MISSION_CONTROL
</autogen>
</item>
<item>
<name>
MS Sculpt keyboard setting
</name>
<identifier>
sculpt.keyboard_setting
</identifier>
<device_only>
DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_ERGONOMIC
</device_only>
<autogen>
__KeyToKey__
KeyCode::COMMAND_L,
KeyCode::CONTROL_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::CONTROL_L,
KeyCode::COMMAND_L
</autogen>
<autogen>
__KeyToKey__
PointingButton::BUTTON4,
KeyCode::MISSION_CONTROL
</autogen>
</item>
<item>
<name>Change Right Command Key to IME</name>
<identifier>private.right_command_to_ime</identifier>
<autogen>
__KeyToKey__
KeyCode::COMMAND_R,
KeyCode::SPACE, ModifierFlag::SHIFT_L | ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>Change Right Alt Keyboard Key to IME</name>
<identifier>private.right_option_to_ime</identifier>
<autogen>
__KeyToKey__
KeyCode::OPTION_R,
KeyCode::SPACE, ModifierFlag::SHIFT_L | ModifierFlag::COMMAND_L
</autogen>
</item>
<!-- ============================================================ -->
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment