Created
April 2, 2013 17:09
-
-
Save jnjosh/5294071 to your computer and use it in GitHub Desktop.
## Remappings for KeyRemapForMacBook (while being in the Dvorak layout) - BothCommandKeysPressed.xml remaps the home row to [{()}] when BOTH command keys are pressed
- RightCommandVimBindings.xml remaps HLJK to the arrow keys when ONLY the RIGHT command key is pressed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Alt keyboard with Command_L + Command_R</name> | |
<item> | |
<name>Rebind all keys when both command keys are pressed</name> | |
<identifier vk_config="true">notsave.smp_alt_keyboard</identifier> | |
<autogen>__KeyToKey__ KeyCode::A, KeyCode::MINUS</autogen> <!-- A to [ --> | |
<autogen>__KeyToKey__ KeyCode::SEMICOLON, KeyCode::EQUAL</autogen> <!-- S to ] --> | |
<autogen>__KeyToKey__ KeyCode::S, KeyCode::MINUS, ModifierFlag::SHIFT_L</autogen> <!-- O to { --> | |
<autogen>__KeyToKey__ KeyCode::L, KeyCode::EQUAL, ModifierFlag::SHIFT_L</autogen> <!-- N to } --> | |
<autogen>__KeyToKey__ KeyCode::D, KeyCode::KEY_9, ModifierFlag::SHIFT_L</autogen> <!-- E to ( --> | |
<autogen>__KeyToKey__ KeyCode::K, KeyCode::KEY_0, ModifierFlag::SHIFT_L</autogen> <!-- T to ) --> | |
<!-- Pushing these keys will not do anything --> | |
<autogen>__KeyToKey__ KeyCode::Q, KeyCode::VK_NONE</autogen> <!-- ' to none --> | |
<autogen>__KeyToKey__ KeyCode::W, KeyCode::VK_NONE</autogen> <!-- , to none --> | |
<autogen>__KeyToKey__ KeyCode::E, KeyCode::VK_NONE</autogen> <!-- > to none --> | |
<autogen>__KeyToKey__ KeyCode::R, KeyCode::VK_NONE</autogen> <!-- P to none --> | |
<autogen>__KeyToKey__ KeyCode::T, KeyCode::VK_NONE</autogen> <!-- Y to none --> | |
<autogen>__KeyToKey__ KeyCode::Y, KeyCode::VK_NONE</autogen> <!-- F to none --> | |
<autogen>__KeyToKey__ KeyCode::U, KeyCode::VK_NONE</autogen> <!-- G to none --> | |
<autogen>__KeyToKey__ KeyCode::I, KeyCode::VK_NONE</autogen> <!-- C to none --> | |
<autogen>__KeyToKey__ KeyCode::O, KeyCode::VK_NONE</autogen> <!-- R to none --> | |
<autogen>__KeyToKey__ KeyCode::P, KeyCode::VK_NONE</autogen> <!-- L to none --> | |
<autogen>__KeyToKey__ KeyCode::F, KeyCode::VK_NONE</autogen> <!-- U to none --> | |
<autogen>__KeyToKey__ KeyCode::G, KeyCode::VK_NONE</autogen> <!-- I to none --> | |
<autogen>__KeyToKey__ KeyCode::H, KeyCode::VK_NONE</autogen> <!-- D to none --> | |
<autogen>__KeyToKey__ KeyCode::J, KeyCode::VK_NONE</autogen> <!-- H to none --> | |
<autogen>__KeyToKey__ KeyCode::Z, KeyCode::VK_NONE</autogen> <!-- : to none --> | |
<autogen>__KeyToKey__ KeyCode::X, KeyCode::VK_NONE</autogen> <!-- Q to none --> | |
<autogen>__KeyToKey__ KeyCode::C, KeyCode::VK_NONE</autogen> <!-- J to none --> | |
<autogen>__KeyToKey__ KeyCode::V, KeyCode::VK_NONE</autogen> <!-- K to none --> | |
<autogen>__KeyToKey__ KeyCode::B, KeyCode::VK_NONE</autogen> <!-- X to none --> | |
<autogen>__KeyToKey__ KeyCode::N, KeyCode::VK_NONE</autogen> <!-- B to none --> | |
<autogen>__KeyToKey__ KeyCode::M, KeyCode::VK_NONE</autogen> <!-- M to none --> | |
<autogen>__KeyToKey__ KeyCode::TAB, KeyCode::VK_NONE</autogen> <!-- TAB to none --> | |
</item> | |
<item> | |
<name>Hold CMD_L+CMD_R and press any key for alt keyboard</name> | |
<identifier>remap.cmdcmd_to_alt_keyboard</identifier> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_R, ModifierFlag::COMMAND_L | ModifierFlag::COMMAND_R, KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_smp_alt_keyboard</autogen> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_L, ModifierFlag::COMMAND_L | ModifierFlag::COMMAND_R, KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_smp_alt_keyboard</autogen> | |
</item> | |
</item> | |
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>vim navigation bindings when Command_R pressed</name> | |
<item> | |
<name>Rebind hljk keys to arrow keys when Command_R is pressed</name> | |
<identifier vk_config="true">notsave.jnj_alt_keyboard</identifier> | |
<autogen>__KeyToKey__ KeyCode::J, KeyCode::CURSOR_LEFT</autogen> <!-- H to < --> | |
<autogen>__KeyToKey__ KeyCode::P, KeyCode::CURSOR_RIGHT</autogen> <!-- L to > --> | |
<autogen>__KeyToKey__ KeyCode::C, KeyCode::CURSOR_DOWN</autogen> <!-- J to Down --> | |
<autogen>__KeyToKey__ KeyCode::V, KeyCode::CURSOR_UP</autogen> <!-- K to Up --> | |
</item> | |
<item> | |
<name>Hold Command_R to rebind vim navigation keys</name> | |
<identifier>remap.cmdr_vim_navigation</identifier> | |
<autogen>__KeyToKey__ KeyCode::COMMAND_R, ModifierFlag::COMMAND_R, KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_jnj_alt_keyboard</autogen> | |
</item> | |
</item> | |
</root> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment