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 ?
One way to change your key bindings is to edit /usr/share/byobu/keybindings/f-keys. tmux (or edit ~/. byobu/keybindings.
Try letting go of ctrl after the first a , so the sequence is ctrl - a , a , d .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With