Question

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 ?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top