Different windows on byobu startup?

Asked by crotty

I know that the default byobu windows are in $HOME/.byobu/windows , but i was wondering if there was some sort of command line switch to get it to look at a different file for that? For instance, I have a byobu setup for a certain set of code with a bunch of windows named a certain thing, but then I have another setup for another set of code files. It would be nice to do something like:

byobu --windows $HOME/.byobu/code_files_1
byobu --windows $HOME/.byobu/code_files_2

each of which would open byobu with a bunch of windows named whatever I set them to. If something like this already exists, please forgive my ignorance. I hoped the -p switch would do it, but apparently not.

Thanks in advance!

Question information

Language:
English Edit question
Status:
Answered
For:
byobu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dustin Kirkland  (kirkland) said :
#1

This is now possible, as of byobu-2.74!

See the current byobu(1) manpage. I'll excerpt here:

       Users can create a list of windows to launch at startup in ~/.byobu/windows. This file is the same syntax as ~/.screenrc, each
       line specifying a window using the "screen" command, as described in screen(1).

       User can also launch Byobu with unique window sets. Users can store these as ~/.byobu/windows.[NAME], and launch Byobu with the
       environment variable BYOBU_WINDOWS.

       For example:
         $ cat ~/.byobu/windows.ssh_sessions
         screen -t localhost bash
         screen -t aussie ssh root@aussie
         screen -t beagle ssh root@beagle
         screen -t collie ssh root@collie
         $ BYOBU_WINDOWS=ssh_sessions byobu

Revision history for this message
Luca Invernizzi (invernizzi) said :
#2

Old question, but it pops up in search results.
This approach only works via the byobu-screen command.
As of now (end of 2012), a solution for byobu-tmux, Ubuntu's default when invoking "byobu", hasn't been implemented yet.
It's in the works though: https://bugs.launchpad.net/byobu/+bug/907363

Can you help with this problem?

Provide an answer of your own, or ask crotty for more information if necessary.

To post a message you must log in.