Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the keybindings to switch windows in Byobu?

Tags:

byobu

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 ?

like image 538
Eric Lavoie Avatar asked Feb 19 '14 15:02

Eric Lavoie


People also ask

How do I change byobu Keybindings?

One way to change your key bindings is to edit /usr/share/byobu/keybindings/f-keys. tmux (or edit ~/. byobu/keybindings.

How do I detach byobu session?

Try letting go of ctrl after the first a , so the sequence is ctrl - a , a , d .


1 Answers

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

like image 169
Eric Lavoie Avatar answered Oct 02 '22 18:10

Eric Lavoie