Skip to content

Instantly share code, notes, and snippets.

@faitno
Last active November 18, 2016 11:51
Show Gist options
  • Save faitno/524a7854ffe800a3ed65a63a96ce0a77 to your computer and use it in GitHub Desktop.
Save faitno/524a7854ffe800a3ed65a63a96ce0a77 to your computer and use it in GitHub Desktop.
Karabiner private.xml Mouse MISSION_CONTROL to buttons next, prev. Tested on mouse: Gigabyte M6880
<?xml version="1.0"?>
<root>
<item>
<name>Mouse control chrome and mission control</name>
<identifier>private.mouse.control.chrome.and.missioncontrol</identifier>
<appendix>prev\next tabs in chrome on option+buttons 4,5</appendix>
<autogen>
__KeyToKey__
PointingButton::BUTTON5, ModifierFlag::OPTION_L,
KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L,
</autogen>
<autogen>
__KeyToKey__
PointingButton::BUTTON4, ModifierFlag::OPTION_L,
KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L,
</autogen>
<appendix>prev\next in chrome on ctrl+buttons 4,5</appendix>
<autogen>
__KeyToKey__
PointingButton::BUTTON5, ModifierFlag::CONTROL_L,
Option::POINTINGRELATIVETOSCROLL_TOKEYS,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L,
</autogen>
<autogen>
__KeyToKey__
PointingButton::BUTTON4, ModifierFlag::CONTROL_L,
Option::POINTINGRELATIVETOSCROLL_TOKEYS,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L,
</autogen>
<appendix>mission control on mac+buttons 4,5</appendix>
<autogen>
__KeyToKey__
PointingButton::BUTTON5, ModifierFlag::COMMAND_L,
KeyCode::MISSION_CONTROL
</autogen>
<autogen>
__KeyToKey__
PointingButton::BUTTON4, ModifierFlag::COMMAND_L,
KeyCode::CURSOR_DOWN, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
<appendix>switch desctop buttons 4,5</appendix>
<autogen>
__KeyToKey__
PointingButton::BUTTON4, ModifierFlag::NONE,
KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
<autogen>
__KeyToKey__
PointingButton::BUTTON5, ModifierFlag::NONE,
KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment