Skip to content

Instantly share code, notes, and snippets.

@wangtai
Last active May 26, 2016 06:25
Show Gist options
  • Save wangtai/7f89faa0ecdabeaf6ffd to your computer and use it in GitHub Desktop.
Save wangtai/7f89faa0ecdabeaf6ffd to your computer and use it in GitHub Desktop.
Karabiner Mapping Control + HJKL on Arrow keys. Mapping Control + D/U on Page Down/Up. Control + Delete_Left on Delete_Right
<?xml version="1.0"?>
<!--
List of KeyCode
https://github.com/tekezo/Karabiner/blob/version_10.4.0/src/bridge/generator/keycode/data/KeyCode.data
List of ModifierCode
https://github.com/tekezo/Karabiner/blob/version_10.4.0/src/bridge/generator/keycode/data/ModifierFlag.data
List of ConsumerKeyCode
https://github.com/tekezo/Karabiner/blob/version_10.4.0/src/bridge/generator/keycode/data/ConsumerKeyCode.data
List of PointingButton
https://github.com/tekezo/Karabiner/blob/version_10.4.0/src/bridge/generator/keycode/data/PointingButton.data
-->
<root>
<item>
<name>Mapping hjkl on left up down and right</name>
<identifier>private.mapping_hjkl_on_arrow</identifier>
<autogen>__KeyToKey__
KeyCode::H, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_LEFT
</autogen>
<autogen>__KeyToKey__
KeyCode::J, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_DOWN
</autogen>
<autogen>__KeyToKey__
KeyCode::K, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_UP
</autogen>
<autogen>__KeyToKey__
KeyCode::L, ModifierFlag::CONTROL_L,
KeyCode::CURSOR_RIGHT
</autogen>
<autogen>__KeyToKey__
KeyCode::D, ModifierFlag::CONTROL_L | ModifierFlag::NONE,
KeyCode::PAGEDOWN
</autogen>
<autogen>__KeyToKey__
KeyCode::U, ModifierFlag::CONTROL_L | ModifierFlag::NONE,
KeyCode::PAGEUP
</autogen>
<autogen>__KeyToKey__
KeyCode::DELETE, ModifierFlag::CONTROL_L,
KeyCode::FORWARD_DELETE
</autogen>
<autogen>__KeyToKey__
KeyCode::BACKQUOTE,
KeyCode::ESCAPE
</autogen>
<autogen>__KeyToKey__
KeyCode::ESCAPE,
KeyCode::BACKQUOTE
</autogen>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment