Byobu: open different tabs in different windows of the same session

Great question!

This isn't directly possible, due to the way Tmux works, from a client-server perspective.

Nonetheless, there is a viable workaround... Basically, you just need to have separate sessions. Byobu makes this easy and convenient through a couple of keybindings.

  • F2 creates new windows
  • Alt-Left and Alt-Right moves back and forth between them
  • Ctrl-F2 creates a vertical splits
  • Shift-F2 creates horizontal splits
  • Shift-Up, -Down, -Left, -Right, move around the splits
  • Ctrl-Shift-F2 creates a new session
  • Alt-Up and Alt-Down moves between sessions

The latter two should solve your problem!

Full disclosure: Author and maintainer of Byobu here


Since this is the top hit on Google, I'll add a solution that works for the version of tmux I'm using:

byobu list-sessions

Notice the number they are prefixed with. To connect with a different "view" of an existing session, you just do:

byobu new-session -t <number>

See the discussion here:

  • https://news.ycombinator.com/item?id=5542227