Skip to content

Instantly share code, notes, and snippets.

@svenwin
Last active December 10, 2015 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svenwin/4506567 to your computer and use it in GitHub Desktop.
Save svenwin/4506567 to your computer and use it in GitHub Desktop.
KeyRemap private.xml Switch Cmd to Ctrl on Terminal
<?xml version="1.0"?>
<root>
<item>
<name>SW: Avoid Terminal-RSI</name>
<appendix>Get two new big CTRL buttons for your thumbs</appendix>
<item>
<name>Swap Command_R with Control_R</name>
<identifier>remap.app_terminal_commandR2controlR</identifier>
<only>TERMINAL</only>
<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::CONTROL_R</autogen>
<autogen>--KeyToKey-- KeyCode::CONTROL_R, KeyCode::COMMAND_R</autogen>
</item>
<item>
<name>Command-Tab should function like normal</name>
<identifier>remap.app_terminal_commandR2controlR_except_tab</identifier>
<only>TERMINAL</only>
<autogen>--KeyToKey--
KeyCode::TAB, ModifierFlag::CONTROL_R,
KeyCode::TAB, ModifierFlag::COMMAND_R</autogen>
</item>
</item>
</root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment