Skip to content

Instantly share code, notes, and snippets.

@inceax
Last active December 28, 2017 00:59
Show Gist options
  • Save inceax/75b2533f8a61fe647ea2 to your computer and use it in GitHub Desktop.
Save inceax/75b2533f8a61fe647ea2 to your computer and use it in GitHub Desktop.
Microsoft Sculpt Comfort Mouse Button Binding for OSX (using Karabiner)
<!--
Microsoft Sculpt Comfort Mouse Binding for OSX (using Karabiner)
Window Button => Launchpad
Slide Down, Scroll Left => Backward (Cmd+[)
Slide Up, Scroll Right => Forward (Cmd+])
A modified version from http://www.tslimi.tk/myblog/view.php?name=Touchpad+Support+of+Microsoft+Sculpt+Comfort+Mouse+for+OS+X
-->
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>MICROSOFT</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>SCULPT_COMFORT</productname>
<productid>0x07a2</productid>
</deviceproductdef>
<item>
<name>Windows Button to LaunchPad (Microsoft Sculpt Comfort Mouse)</name>
<identifier>com.microsoft.mouse.sculpt_comfort.win_button</identifier>
<device_only>DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_COMFORT</device_only>
<autogen>
__KeyToKey__
KeyCode::COMMAND_L,
KeyCode::LAUNCHPAD
</autogen>
</item>
<item>
<name>Slide Up to Backward (Microsoft Sculpt Comfort Mouse)</name>
<identifier>com.microsoft.mouse.sculpt_comfort.slide_up</identifier>
<device_only>DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_COMFORT</device_only>
<autogen>
__KeyToKey__
KeyCode::DELETE, ModifierFlag::CONTROL_L,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>Slide Down to Forward (Microsoft Sculpt Comfort Mouse)</name>
<identifier>com.microsoft.mouse.sculpt_comfort.slide_down</identifier>
<device_only>DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_COMFORT</device_only>
<autogen>
__KeyToKey__
KeyCode::TAB, ModifierFlag::CONTROL_L,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>Scroll Left to Backward (Microsoft Sculpt Comfort Mouse)</name>
<identifier>com.microsoft.mouse.sculpt_comfort.scroll_left</identifier>
<device_only>DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_COMFORT</device_only>
<autogen>
__ScrollWheelToKey__
ScrollWheel::LEFT,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>Scroll Right to Forward (Microsoft Sculpt Comfort Mouse)</name>
<identifier>com.microsoft.mouse.sculpt_comfort.scroll_right</identifier>
<device_only>DeviceVendor::MICROSOFT,DeviceProduct::SCULPT_COMFORT</device_only>
<autogen>
__ScrollWheelToKey__
ScrollWheel::RIGHT,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L
</autogen>
</item>
</root>
@johant87
Copy link

Any chance of getting this to work on mac os Sierria with karabiner elements?

@jimmy-biznessapps
Copy link

It looks to me like Elements doesn't allow custom mappings -- or even keys with modifiers yet. Correct me if I'm mistaken... I'm basically having to wait to upgrade due to this alone.

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