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.

I'd like to bind Shift + and Shift + to move my current screen left/right in the ordering of screens.

How can this be done?

These are the versions I'm using:

$ byobu -v
byobu version 2.68
Screen version 4.00.03jw4 (FAU) 2-May-06
share|improve this question
    
Related: serverfault.com/questions/244294/… –  Oliver Salzburg Feb 17 '12 at 8:44

1 Answer 1

up vote 7 down vote accepted

You can easily bind actions to shift-left and shift-right, using:

bindkey "^[[1;2D" prev
bindkey "^[[1;2C" next

Note that Byobu 5.12 uses these bindings by default for shift-left and shift-right.

And you can easily move a window from one window number to another by pressing:

ctrl-a :number [SOME_NUMBER]

However, GNU Screen does not support SOME_NUMBER to be a relative value, like +1 or -1. Rather, it must be an absolute window number, like "8" or "2".

Byobu also supports tmux as a backend, in addition to screen. Tmux does have support for this feature, and it can be accomplished by highlighting the window you want to move, and pressing Ctrl-Shift-F3 to move it left, and Ctrl-Shift-F4 to move it right.

share|improve this answer

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.