Skip to content

Instantly share code, notes, and snippets.

Forked from burtlo/private.xml
Last active Dec 15, 2015
What would you like to do?
(1) Updated to support iTerm (2) Added second mapping for backtick -> ctrl-A. This is useful for running an "inner" tmux session on remote shell. You'll need to ensure the remote shell's .tmux.conf is setup for ctrl-A as prefix ( (3) Since we can no longer use backtick key, we need another m…

Disabling CAPS LOCK

If you haven't already done so, gain an extra key and open up your System Preferences > Keyboard > Modifier Keys ... and rebind CAPSLOCK to No Action.

Rebinding CAPSLOCK to CONTROL_R (Right Control Key)

  • Install PCKeyboardHack
  • Open System Preferences > PCKeyboardHack
  • Change "Caps Lock" to keycode 62.

Reassigning the Caps Lock

Rebinding CONTROL_R (Right Control Key) to CONTROL + B

  • Install KeyRemap4MacBook

  • Open System Preferences > KeyRemap4MackBook > Misc & Uninstall

  • Click "Open private.xml"

Opening private.xml

  • Copy and Paste the private.xml provided with in this gist.
  • Open System Preferences > KeyRemap4MackBook > Change Key
  • Click "ReloadXML"
  • Toggle open "TMUX Key Remappings"
  • Check "TMUX: Right Control to Control+B

Enabling Keybinding

<?xml version="1.0"?>
<name>TMUX Key Remappings</name>
<name>TMUX: Right Control to Ctrl+B</name>
KeyCode::B, ModifierFlag::CONTROL_L
<name>UK Section key to backquote</name>
<name>TMUX Inner: backquote key to Ctrl+A</name>
KeyCode::A, ModifierFlag::CONTROL_L
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment