Skip to content

Instantly share code, notes, and snippets.

@Skinner927
Created January 20, 2015 18:25
Show Gist options
  • Save Skinner927/58b4da528a2c59cfc492 to your computer and use it in GitHub Desktop.
Save Skinner927/58b4da528a2c59cfc492 to your computer and use it in GitHub Desktop.
Karabiner private.xml
<?xml version="1.0" ?>
<root>
<item>
<name>! Custom</name>
<replacementdef>
<replacementname>LowKeyRepeat</replacementname>
<replacementvalue>KeyRepeat::RawValue::20</replacementvalue>
</replacementdef>
<item>
<identifier>com.denniskinner.fastArrowKeys</identifier>
<name>Fast Arrow Keys</name>
<appendix>Arrow keys repeat every 20ms</appendix>
<autogen>
__KeyToKey__
KeyCode::CURSOR_LEFT,
KeyCode::CURSOR_LEFT,
{{ LowKeyRepeat }}
</autogen>
<autogen>
__KeyToKey__
KeyCode::CURSOR_RIGHT,
KeyCode::CURSOR_RIGHT,
{{ LowKeyRepeat }}
</autogen>
<autogen>
__KeyToKey__
KeyCode::CURSOR_UP,
KeyCode::CURSOR_UP,
{{ LowKeyRepeat }}
</autogen>
<autogen>
__KeyToKey__
KeyCode::CURSOR_DOWN,
KeyCode::CURSOR_DOWN,
{{ LowKeyRepeat }}
</autogen>
</item>
<deviceproductdef>
<productname>LOGITECH_G502</productname>
<productid>0xc07d</productid>
</deviceproductdef>
<item>
<name>Disable all settings on Logitech G502 Mouse.</name>
<identifier>com.dennisskinner.dont_remap_logitech_g502</identifier>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_G502</device_only>
<autogen>__PassThrough__</autogen>
</item>
<item>
<name>Fix Mouse Buttons for ONLY the G502</name>
<identifier>com.dennisskinner.fix_g502_mouse</identifier>
<appendix>Maps right control + right shift + 6 to mouse button 6</appendix>
<appendix>Maps right control + right shift + 7 to mouse button 7</appendix>
<device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_G502</device_only>
<autogen>
__KeyToKey__
KeyCode::KEY_6, ModifierFlag::CONTROL_R | ModifierFlag::SHIFT_R,
KeyCode::VK_MOUSEKEY_BUTTON_BUTTON6
</autogen>
<autogen>
__KeyToKey__
KeyCode::KEY_7, ModifierFlag::CONTROL_R | ModifierFlag::SHIFT_R,
KeyCode::VK_MOUSEKEY_BUTTON_BUTTON7
</autogen>
</item>
<item>
<name>Swap Start (aka Command) and Alt keys on Windows keyboard</name>
<appendix>EXCLUDES Mapping G502 Mouse</appendix>
<identifier>remap.windows4mac.nog502</identifier>
<device_not>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_G502</device_not>
<autogen>__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R</autogen>
<autogen>__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_R</autogen>
</item>
<devicevendordef>
<vendorname>GIGABYTE</vendorname>
<vendorid>0x04b4</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>GIGABYTE_6800</productname>
<productid>0x0033</productid>
</deviceproductdef>
<item>
<name>Use Button4 and Button5 as Back/Forward</name>
<appendix>ONLY FOR CHEAP GIGABYTE WORK MOUSE</appendix>
<device_only>DeviceVendor::GIGABYTE, DeviceProduct::GIGABYTE_M6800</device_only>
<item>
<name>Set 1: Button4 to Command+[ (Back)</name>
<identifier>c.pointing_button4_to_command_bracket_left</identifier>
<autogen>__KeyToKey__ PointingButton::BUTTON4, KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Set 1: Button5 to Command+] (Forward)</name>
<identifier>c.pointing_button5_to_command_bracket_right</identifier>
<autogen>__KeyToKey__ PointingButton::BUTTON5, KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Set 2: Button4 to Command+] (Forward)</name>
<identifier>c.pointing_button4_to_command_bracket_right</identifier>
<autogen>__KeyToKey__ PointingButton::BUTTON4, KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L</autogen>
</item>
<item>
<name>Set 2: Button5 to Command+[ (Back)</name>
<identifier>c.pointing_button5_to_command_bracket_left</identifier>
<autogen>__KeyToKey__ PointingButton::BUTTON5, KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L</autogen>
</item>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment