Skip to content

Instantly share code, notes, and snippets.

@LukeMurphey
Last active June 27, 2017 23:02
Show Gist options
  • Select an option

  • Save LukeMurphey/0ee6bf95c115cc8ec06d35053c679fbb to your computer and use it in GitHub Desktop.

Select an option

Save LukeMurphey/0ee6bf95c115cc8ec06d35053c679fbb to your computer and use it in GitHub Desktop.
Karabiner configuration to changes tabs with the mouse 4 & 5 buttons and open links in a new window when the middle mouse button is pressed
<?xml version="1.0"?>
<root>
<item>
<name>LKM Button 4 5 to Tab Back Forward</name>
<identifier>private.my_button_4_5_to_tab_back_forward</identifier>
<autogen>
__KeyToKey__
PointingButton::BUTTON4,
KeyCode::TAB, ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L
</autogen>
<autogen>
__KeyToKey__
PointingButton::BUTTON5,
KeyCode::TAB, ModifierFlag::CONTROL_L
</autogen>
</item>
<item>
<name>LKM middle mouse to open a new tab</name>
<identifier>private.my_button_3_to_command_click</identifier>
<autogen>
__KeyToKey__
KeyCode::COMMAND_L,
PointingButton::LEFT,ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>LKM Command + left/right to change tabs</name>
<identifier>private.my_button_fn_left_right</identifier>
<autogen>
__KeyToKey__,
KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L,
KeyCode::TAB, ModifierFlag::CONTROL_L
</autogen>
<autogen>
__KeyToKey__,
KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L,
KeyCode::TAB, ModifierFlag::CONTROL_L | ModifierFlag::SHIFT_L
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment