Skip to content

Instantly share code, notes, and snippets.

@ericksli
Created March 15, 2016 06:02
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 ericksli/3264ca31ad86abb2dc34 to your computer and use it in GitHub Desktop.
Save ericksli/3264ca31ad86abb2dc34 to your computer and use it in GitHub Desktop.
Map the mouse button 4 and 5 to browser's back and forward commands using Karabiner
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>DELUX</vendorname>
<vendorid>0x093a</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>DELUX_M618</productname>
<productid>0x2521</productid>
</deviceproductdef>
<item>
<name>Delux M618</name>
<item>
<name>Mouse navigate back</name>
<identifier>private.delux_m618_nav_back</identifier>
<device_only>DeviceVendor::DELUX, DeviceProduct::DELUX_M618</device_only>
<autogen>
__KeyToKey__
PointingButton::BUTTON5,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L,
Option::NOREPEAT
</autogen>
</item>
<item>
<name>Mouse navigate forward</name>
<identifier>private.delux_m618_nav_forward</identifier>
<device_only>DeviceVendor::DELUX, DeviceProduct::DELUX_M618</device_only>
<autogen>
__KeyToKey__
PointingButton::BUTTON4,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L,
Option::NOREPEAT
</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment