Para o caso específico de organização de janelas, há um comando de tela para salvá-las em um arquivo: layout dump
. De man screen
:
layout dump [filename]
Write to a file the order of splits made in the current layout. This is
useful to recreate the order of your regions used in your current
layout. Only the current layout is recorded. While the order of the
regions are recorded, the sizes of those regions and which windows
correspond to which regions are not. If no filename is specified, the
default is layout-dump, saved in the directory that the screen process
was started in. If the file already exists, layout dump will append to
that file. As an example:
C-a : layout dump /home/user/.screenrc
will save or append the layout to the user's .screenrc file.
Então, uma vez que você faça o arranjo manualmente, pressione Ctrl a : , então digite layout dump /path/to/some/file
. O layout será salvo em /path/to/some/file
e você poderá restaurá-lo em uma nova sessão com:
screen -c /path/to/some/file