Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to bind C-1 in tmux? When I try it I receive an error:

unknown key: C-1

Here's what I'm trying:

bind-key -n C-1 select-window -t 1

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

If you type Ctrl-V Ctrl-1 at a shell prompt, you won't get any output (compare to Ctrl-V Ctrl-i, for example).

Running xev, Ctrl-1 gives "1" with a state code signifying that Ctrl is held down, so you may be able to map Ctrl-1 to an unused escape sequence using xmodmap and then map that sequence to the select-window function in tmux.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.