GNU Screen time equals efficiency and less clutter

Using GNU screen has been a great addition to my general tool set for managing systems and coding binges.

Currently using screen 4.06.02 on my Lubuntu 19.10

My startup screen configuration:

# huge scrollback buffer
defscrollback 100000

# no welcome message
startup_message off

hardstatus alwayslastline

hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'

# get rid of silly xoff stuff
bind s split

##---------------------------------------------
## Layouts
## Layout one:  one window
## Layout two:  two windows - good for coding
## Layout four: four windows
##
## Use F3 to move prev layout, F4 next layout
##---------------------------------------------
layout new one
screen 0

layout new two
split -v
screen 1
focus down
screen 2
focus up

# 4 panel display
layout new four
split -v
screen 3

# left lower pane
split
focus down
screen 4

# right top and right lower
focus right
split
screen 5
focus down
screen 6

focus left
focus top

layout attach one
layout select one

# switch layouts with Ctrl+F3 (prev layout) and Ctrl+F4 (next)
bindkey -k k3 layout prev
bindkey -k k4 layout next

Leave a Reply

Your email address will not be published. Required fields are marked *