# If both the lifespan and the autorefresh parameters are zero, # the backtick program is expected to stay in the background and generate output once in a while. # In this case, the command is executed right away and screen stores the last line of output. # If a new line gets printed screen will automatically refresh the hardstatus or the captions. # backtick 2 0 0 $HOME/.screen-battery-rate backtick 2 0 0 $HOME/.config/screen/battery-rate hardstatus alwayslastline # H hostname of the system hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}]%?[%2`]%?[%{B}%d.%m. %{W}%c%{g}]' defscrollback 10000 # http://stackoverflow.com/questions/17868652/screen-how-to-turn-on-alternate-screen altscreen on # no welcome message startup_message off # 256 colors attrcolor b ".I" termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' defbce on # mouse tracking allows to switch region focus by clicking mousetrack on # enable use of the mouse's scrollwheel to scroll through the scrollback buffer # http://unix.stackexchange.com/questions/43229/is-there-a-way-to-make-screen-scroll-like-a-normal-terminal # http://stackoverflow.com/questions/359109/using-the-scrollwheel-in-gnu-screen # termcapinfo xterm* ti@:te@ # termcapinfo xterm 'hs:ts=\E]2;:fs=07:ds=\E]2;screen07' # layouts layout autosave on # navigating regions bind -k kl focus left bind -k kd focus down bind -k ku focus up bind -k kr focus right bind h focus left bind j focus down bind k focus up bind l focus right # resizing regions bind -c resize h eval "resize -h -5" "command -c resize" bind -c resize j eval "resize -v +3" "command -c resize" bind -c resize k eval "resize -v -3" "command -c resize" bind -c resize l eval "resize -h +5" "command -c resize" bind -c resize -k kl eval "resize -h -5" "command -c resize" bind -c resize -k kd eval "resize -v +3" "command -c resize" bind -c resize -k ku eval "resize -v -3" "command -c resize" bind -c resize -k kr eval "resize -h +5" "command -c resize" bind R eval "command -c resize" "echo resize" # https://gist.github.com/joaopizani/2718397