Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
181 lines (150 sloc) 6.41 KB
<?xml version="1.0"?>
<root>
<!-- caps is mapped to PC_APPLICATION in seil -->
<modifierdef>MY_CAPS</modifierdef>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_iTerm</name>
<url type="file">/Applications/iTerm.app</url>
</vkopenurldef>
<item>
<name>My capslock key settings</name>
<identifier>private.me</identifier>
<!-- Map capslock to modifier MY_CAPS -->
<autogen>__KeyToKey__ KeyCode::PC_APPLICATION, KeyCode::VK_MODIFIER_MY_CAPS</autogen>
<!-- vim cursor movement while holding caps -->
<autogen>__KeyToKey__ KeyCode::H, ModifierFlag::MY_CAPS, KeyCode::CURSOR_LEFT</autogen>
<autogen>__KeyToKey__ KeyCode::J, ModifierFlag::MY_CAPS, KeyCode::CURSOR_DOWN</autogen>
<autogen>__KeyToKey__ KeyCode::K, ModifierFlag::MY_CAPS, KeyCode::CURSOR_UP</autogen>
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::MY_CAPS, KeyCode::CURSOR_RIGHT</autogen>
<!-- uiop to left up down right -->
<!-- <autogen>__KeyToKey__ KeyCode::U, ModifierFlag::MY_CAPS, KeyCode::CURSOR_LEFT</autogen> -->
<!-- <autogen>__KeyToKey__ KeyCode::I, ModifierFlag::MY_CAPS, KeyCode::CURSOR_UP</autogen> -->
<!-- <autogen>__KeyToKey__ KeyCode::O, ModifierFlag::MY_CAPS, KeyCode::CURSOR_DOWN</autogen> -->
<!-- <autogen>__KeyToKey__ KeyCode::P, ModifierFlag::MY_CAPS, KeyCode::CURSOR_RIGHT</autogen> -->
<!-- caps + space to escape -->
<autogen>__KeyToKey__ KeyCode::SPACE, ModifierFlag::MY_CAPS, KeyCode::ESCAPE</autogen>
<!-- caps + r to => -->
<autogen>__KeyToKey__ KeyCode::R, ModifierFlag::MY_CAPS, KeyCode::EQUAL, KeyCode::DOT, ModifierFlag::SHIFT_L</autogen>
<!-- caps + f to -> caps + F to <- -->
<autogen>
__KeyToKey__
KeyCode::F, ModifierFlag::MY_CAPS | ModifierFlag::NONE,
KeyCode::MINUS,
KeyCode::DOT, ModifierFlag::SHIFT_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::F, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::COMMA, ModifierFlag::SHIFT_L,
KeyCode::MINUS
</autogen>
<!-- w and s to up and down; a and d to left and right; q and e home and end -->
<autogen>
__KeyToKey__
KeyCode::W, ModifierFlag::MY_CAPS | ModifierFlag::NONE,
KeyCode::CURSOR_UP
</autogen>
<autogen>
__KeyToKey__
KeyCode::S, ModifierFlag::MY_CAPS | ModifierFlag::NONE,
KeyCode::CURSOR_DOWN
</autogen>
<autogen>
__KeyToKey__
KeyCode::A, ModifierFlag::MY_CAPS | ModifierFlag::NONE,
KeyCode::CURSOR_LEFT
</autogen>
<autogen>
__KeyToKey__
KeyCode::D, ModifierFlag::MY_CAPS| ModifierFlag::NONE,
KeyCode::CURSOR_RIGHT
</autogen>
<autogen>
__KeyToKey__
KeyCode::Q, ModifierFlag::MY_CAPS| ModifierFlag::NONE,
KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::E, ModifierFlag::MY_CAPS| ModifierFlag::NONE,
KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L
</autogen>
<!-- preserve selection functionality with wasd movement -->
<autogen>
__KeyToKey__
KeyCode::W, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::CURSOR_UP, ModifierFlag::SHIFT_R
</autogen>
<autogen>
__KeyToKey__
KeyCode::S, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::CURSOR_DOWN, ModifierFlag::SHIFT_R
</autogen>
<autogen>
__KeyToKey__
KeyCode::A, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::CURSOR_LEFT, ModifierFlag::SHIFT_R
</autogen>
<autogen>
__KeyToKey__
KeyCode::D, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::CURSOR_RIGHT, ModifierFlag::SHIFT_R
</autogen>
<autogen>
__KeyToKey__
KeyCode::Q, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::CURSOR_LEFT, ModifierFlag::SHIFT_R | ModifierFlag::COMMAND_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::E, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::CURSOR_RIGHT, ModifierFlag::SHIFT_R | ModifierFlag::COMMAND_L
</autogen>
<!-- cmd+caps+w, s to cmd+ctrl up and down for moving lines in sublime -->
<autogen>
__KeyToKey__
KeyCode::W, ModifierFlag::MY_CAPS | ModifierFlag::COMMAND_L,
KeyCode::CURSOR_UP, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
<autogen>
__KeyToKey__
KeyCode::S, ModifierFlag::MY_CAPS | ModifierFlag::COMMAND_L,
KeyCode::CURSOR_DOWN, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
<!-- caps + cmd + a to ctrl + cmd + a for alignment in sublime -->
<autogen>
__KeyToKey__
KeyCode::A, ModifierFlag::MY_CAPS | ModifierFlag::COMMAND_L,
KeyCode::A, ModifierFlag::COMMAND_L | ModifierFlag::CONTROL_L
</autogen>
<!-- caps + k to shift+ctrl+k for deleting a line in sublime -->
<autogen>
__KeyToKey__
KeyCode::K, ModifierFlag::MY_CAPS | ModifierFlag::NONE,
KeyCode::K, ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L
</autogen>
<!-- caps + delete to delete -->
<autogen>__KeyToKey__ KeyCode::DELETE, ModifierFlag::MY_CAPS, KeyCode::DELETE, ModifierFlag::FN</autogen>
<!-- caps + t to open terminal -->
<autogen>
__KeyToKey__
KeyCode::T, ModifierFlag::MY_CAPS,
KeyCode::VK_OPEN_URL_APP_iTerm,
</autogen>
<!-- caps + shift + x for docblockr -->
<autogen>
__KeyToKey__
KeyCode::X, ModifierFlag::MY_CAPS | ModifierFlag::SHIFT_R,
KeyCode::SLASH,
KeyCode::KEY_8, ModifierFlag::SHIFT_L,
KeyCode::KEY_8, ModifierFlag::SHIFT_L,
KeyCode::TAB
</autogen>
<!-- to enable capslock -->
<autogen>
__KeyToKey__
KeyCode::RETURN, ModifierFlag::MY_CAPS,
KeyCode::CAPSLOCK
</autogen>
</item>
</root>