8

I'm using Byobu 5.73. The tmux keybindings to switch windows is ALT + Left arrow and ALT + Right arrow. I want to change this keybinding for CTRL + SHIFT + Left arrow and CTRL + SHIFT + Right arrow.

How to do that ?

Eric Lavoie
  • 5,121
  • 3
  • 32
  • 49

1 Answers1

20

One way to do it is to edit /usr/share/byobu/keybindings/f-keys.tmux.

You will find these lines :

bind-key -n M-Left previous-window
bind-key -n M-Right next-window

M is for Meta, aka the ALT key. Change the lines for :

bind-key -n C-S-Left previous-window
bind-key -n C-S-Right next-window

C for Ctrl key and S for Shift key.

Save, quit, press F5 to reload profile.

Refs : Bybobu doc, Byobu-and-mc, keybindings-in-byobu-using-tmux-backend, tmux

Community
  • 1
  • 1
Eric Lavoie
  • 5,121
  • 3
  • 32
  • 49
  • 10
    +1... also: to make the changes at the user level, make the same edit to ~/.byobu/keybindings.tmux – Owen Apr 10 '14 at 15:54