Comment 3 for bug 517796

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Thanks muchly for the kind words.

I need to think about this a bit more.

The window list is a file that must be sourced by screen itself.

We generally source ~/.byobu/windows, which is your list of default windows (if any).

So I think we would need screen to conditionally source some other file, which screen doesn't really support.

In the mean time, you could just use your .screenrc.

Create your own byobu wrapper, call it mybyobu, chmod it 755, drop it in ~/bin, and have it do:

#!/bin/sh
# mybyobu
[ -r "$1" ] && cat "$1" > $HOME/.screenrc
exec byobu

And run "mybyobu window_list_1", where window_list_1 is a file listing your windows. This would overwrite your .screenrc each time, and then launch byobu.

Cool?