Skip to content

Instantly share code, notes, and snippets.

@giaosudau
Created March 26, 2016 15:27
Show Gist options
  • Save giaosudau/16229f907de32390da3a to your computer and use it in GitHub Desktop.
Save giaosudau/16229f907de32390da3a to your computer and use it in GitHub Desktop.
Karabiner for M545
<?xml version="1.0"?>
<root>
<item>
<name>Logitech M545 Mouse</name>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>USB_Receiver</productname>
<productid>0xc52b</productid>
</deviceproductdef>
<item>
<name>Mouse Side to Volume Up and Down</name>
<identifier>private.mouse_side_to_page_up_down</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>
__SimultaneousKeyPresses__ KeyCode::COMMAND_L, KeyCode::D,
ConsumerKeyCode::VOLUME_DOWN
</autogen>
<autogen>
__KeyToKey__ KeyCode::COMMAND_L,
ConsumerKeyCode::VOLUME_UP
</autogen>
</item>
<item>
<name>Mouse Back and Forward</name>
<identifier>private.mouse_back_forward</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::USB_Receiver</device_only>
<autogen>
--PointingButtonToKey--
PointingButton::BUTTON4,
KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L
</autogen>
<autogen>
--PointingButtonToKey--
PointingButton::BUTTON5,
KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L
</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment