Skip to content

Instantly share code, notes, and snippets.

@ericychoi
Created April 5, 2017 15:53
Show Gist options
  • Select an option

  • Save ericychoi/5377923b1221c853bb457cd0b8754867 to your computer and use it in GitHub Desktop.

Select an option

Save ericychoi/5377923b1221c853bb457cd0b8754867 to your computer and use it in GitHub Desktop.
Karabiner-private.xml for mapping mouse forward/back buttons to next/prev space
<?xml version="1.0"?>
<root>
<item>
<identifier>private.button_4_next_space</identifier>
<name>Mouse buttons to move spaces</name>
<appendix>Mouse button 4 to next space</appendix>
<autogen>
__KeyToKey__
PointingButton::BUTTON4,
KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
<appendix>Mouse button 5 to previous space</appendix>
<autogen>
__KeyToKey__
PointingButton::BUTTON5,
KeyCode::CURSOR_LEFT, 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