Skip to content

Instantly share code, notes, and snippets.

@rdj
Created October 2, 2012 02:04
Show Gist options
  • Save rdj/3815763 to your computer and use it in GitHub Desktop.
Save rdj/3815763 to your computer and use it in GitHub Desktop.
KeyRemap4MacBook configuration
<?xml version="1.0"?>
<root>
<item>
<name>RDJ’s Customizations</name>
<item>
<name>Pseudo-collapse ⎋ and `</name>
<item>
<name>⌘⎋ to ⌘`</name>
<identifier>private.cmd_esc_to_cmd_backtick</identifier>
<autogen>
--KeyToKey--
KeyCode::ESCAPE, VK_COMMAND | ModifierFlag::NONE,
KeyCode::BACKQUOTE, ModifierFlag::COMMAND_L
</autogen>
</item>
<item>
<name>⇧⎋ to ⇧` (~)</name>
<identifier>private.shift_esc_to_tilde</identifier>
<autogen>
--KeyToKey--
KeyCode::ESCAPE, VK_SHIFT | ModifierFlag::NONE,
KeyCode::BACKQUOTE, ModifierFlag::SHIFT_L
</autogen>
</item>
</item>
<item>
<name>Keyboard scrolling</name>
<item>
<name>⌥⌘J to ↓ (mouse)</name>
<identifier>private.scroll.down.with.j</identifier>
<autogen>
--KeyToKey--
KeyCode::J, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L,
KeyCode::VK_MOUSEKEY_SCROLL_UP
</autogen>
</item>
<item>
<name>⌥⌘K to ↑ (mouse)</name>
<identifier>private.scroll.up.with.k</identifier>
<autogen>
--KeyToKey--
KeyCode::K, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L,
KeyCode::VK_MOUSEKEY_SCROLL_DOWN
</autogen>
</item>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment