Skip to content

Instantly share code, notes, and snippets.

@gretel
Last active June 9, 2016 19:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gretel/b00af6a15724bd839d37a5622474958b to your computer and use it in GitHub Desktop.
Save gretel/b00af6a15724bd839d37a5622474958b to your computer and use it in GitHub Desktop.
mappings for my kezboard with capslock mapped to hyper and stuff using karabiner and seil https://pqrs.org/osx/karabiner/xml.html.en https://pqrs.org/osx/karabiner/seil.html.en
<?xml version="1.0"?>
<!-- https://gist.github.com/gretel/b00af6a15724bd839d37a5622474958b -->
<root>
<devicevendordef>
<vendorname>APPLE_COMPUTER</vendorname>
<vendorid>0x05ac</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>MACBOOK_PRO</productname>
<productid>0x0246</productid>
</deviceproductdef>
<deviceproductdef>
<productname>APPLE_KEYBOARD_INT</productname>
<productid>0x0239</productid>
</deviceproductdef>
<deviceproductdef>
<productname>APPLE_MAGICTRACKPAD2</productname>
<productid>0x0265</productid>
</deviceproductdef>
<item>
<name>Remap Caps Lock to Hyper with Escape on tap</name>
<appendix>OS X doesn't have a Hyper. This maps caps lock (actually F19) to Control + Shift + Option + Command, unless you tap it. Then it sends Escape.</appendix>
<identifier>jitter.caps_lock_to_hyper_or_escape</identifier>
<autogen>--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,
ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L,
KeyCode::ESCAPE
</autogen>
<device_only>DeviceVendor::APPLE_COMPUTER</device_only>
</item>
<item>
<name>Disable Sysdiagnose Keys</name>
<appendix>Disable Sysdiagnose DOT, COMMA, FORWARD SLASH Keys</appendix>
<identifier>jitter.disable_sysdiagnose_keys</identifier>
<device_only>DeviceVendor::APPLE_COMPUTER</device_only>
<autogen>--KeyToKey--
KeyCode::DOT,
ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::VK_NONE
</autogen>
<autogen>--KeyToKey--
KeyCode::COMMA,
ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::VK_NONE
</autogen>
<autogen>--KeyToKey--
KeyCode::SLASH,
ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::VK_NONE
</autogen>
</item>
<item>
<name>German kezboard annoyances</name>
<appendix>Change forward to backward tick</appendix>
<identifier>private.jitter_tick</identifier>
<autogen>__KeyToKey__ KeyCode::EQUAL, ModifierFlag::NONE, KeyCode::EQUAL, ModifierFlag::SHIFT_L</autogen>
<device_only>DeviceVendor::APPLE_COMPUTER, DeviceProduct::MACBOOK_PRO</device_only>
</item>
<item>
<name>Scroll when Fn is held</name>
<appendix>Seems to be laggy sometimes</appendix>
<identifier>private.jitter_scroll_fn</identifier>
<autogen>__PointingRelativeToScroll__ PointingButton::NONE, KeyCode::FN</autogen>
<device_only>DeviceVendor::APPLE_COMPUTER</device_only>
</item>
<item>
<name>Fine-grained volume control</name>
<appendix>Hold SHIFT for the default behaviour</appendix>
<identifier>private.jitter_volume</identifier>
<autogen>__KeyToKey__ ConsumerKeyCode::VOLUME_DOWN, ModifierFlag::NONE, ConsumerKeyCode::VOLUME_DOWN, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L</autogen>
<autogen>__KeyToKey__ ConsumerKeyCode::VOLUME_UP, ModifierFlag::NONE, ConsumerKeyCode::VOLUME_UP, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L</autogen>
<device_only>DeviceVendor::APPLE_COMPUTER</device_only>
</item>
<item>
<name>Fine-grained keyboard brightness control</name>
<appendix>Hold SHIFT for the default behaviour</appendix>
<identifier>private.jitter_keyboard_brightness</identifier>
<autogen>__KeyToKey__ ConsumerKeyCode::KEYBOARDLIGHT_LOW, ModifierFlag::NONE, ConsumerKeyCode::KEYBOARDLIGHT_LOW, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L</autogen>
<autogen>__KeyToKey__ ConsumerKeyCode::KEYBOARDLIGHT_HIGH, ModifierFlag::NONE, ConsumerKeyCode::KEYBOARDLIGHT_HIGH, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L</autogen>
<device_only>DeviceVendor::APPLE_COMPUTER</device_only>
</item>
<item>
<name>Tap shift to hop over words</name>
<appendix>Shift keys move the cursor one word forward or backward when pressed alone. When used with other keys they act as normal shifts</appendix>
<identifier>private.jitter_shift_wordhop</identifier>
<autogen>--KeyOverlaidModifier-- KeyCode::SHIFT_R, Option::KEYTOKEY_AFTER_KEYUP, ModifierFlag::SHIFT_R | ModifierFlag::NONE, KeyCode::SHIFT_R, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L</autogen>
<autogen>--KeyOverlaidModifier-- KeyCode::SHIFT_L, Option::KEYTOKEY_AFTER_KEYUP, ModifierFlag::SHIFT_L | ModifierFlag::NONE, KeyCode::SHIFT_L, KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L</autogen>
<device_only>DeviceVendor::APPLE_COMPUTER</device_only>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment