Created
August 25, 2016 06:00
-
-
Save jeckel/2b70654197a65535b650184bb60e8182 to your computer and use it in GitHub Desktop.
Screen configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# 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 | |
select 0 | |
bind c screen 1 # window numbering starts at 1 not 0 | |
bind 0 select 10 | |
# switch windows with F3 (prev) and F4 (next) | |
bindkey "^[OR" prev | |
bindkey "^[OS" next | |
# navigating regions with Ctrl-arrows | |
bindkey "^[[1;5D" focus left | |
bindkey "^[[1;5C" focus right | |
bindkey "^[[1;5A" focus up | |
bindkey "^[[1;5B" focus down | |
# define screen layout | |
screen -t Server1 1 ssh -t server1 htop | |
screen -t Server2 2 ssh -t server2 top | |
screen -t Server3 3 ssh -t server3 htop | |
screen -t Shell 4 zsh | |
select 1 | |
split -v | |
resize -h -20 | |
split | |
resize -v -10 | |
focus down | |
split | |
select 2 | |
focus down | |
select 3 | |
focus right | |
select 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment