I want to change the key binding in Tmux so I can use
Ctrl + Alt
Ctrl + B
This is my (unfortunately) not working try to do so.
unbind C-b set -g prefix M-C
What's wrong with this? I thought I followed the documentation for the keys.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You do indeed have the correct syntax for changing the command prefix in tmux. But unfortunately you cannot use the combination Ctrl+Alt as a command prefix. Both Ctrl and Alt are only used in combination with other keys, but never alone and never with each other. For example,
C-bstands for Ctrl+B
M-nstands for Alt+N
Your attempt to bind
M-C actually means Alt+Shift+C (meta prefix with uppercase C). Similarly,
C-M would mean Ctrl+Shift+M.
In short, you have to combine Ctrl with some other key or Alt with some other key, not with each other.