From: Simon Ruderich Date: Wed, 18 Jul 2018 11:15:05 +0000 (+0200) Subject: screenrc: use dark blue for hardstatus on remote systems X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=sidebyside;h=4b330f390e94e31f406cfaaad8e3397ebc3f89de;hp=d2a8cb58415a3a7ddd5a8d65a8d27ec302481b30;p=config%2Fdotfiles.git screenrc: use dark blue for hardstatus on remote systems --- diff --git a/shell/screenrc.in b/shell/screenrc.in index de785d6..e2caa74 100644 --- a/shell/screenrc.in +++ b/shell/screenrc.in @@ -57,7 +57,8 @@ attrcolor b ".I" # CAPTION AND HARDSTATUS # Use white on light blue background for highlighting and text messages (and -# for window borders in split mode). +# for window borders in split mode). For remote hosts this is changed to dark +# blue to increase the contrast of nested screens. sorendition = Bw # Display current battery charge if running on a laptop. Redisplay every 3 diff --git a/shell/setup.sh b/shell/setup.sh index 394c463..4276b42 100755 --- a/shell/setup.sh +++ b/shell/setup.sh @@ -185,7 +185,10 @@ fi apply_optional_replacement screenrc \ temperature TEMPERATURE "$temperature" # Settings for local hosts. -if test -z "${SSH_CONNECTION:+set}"; then +if test -n "${SSH_CONNECTION:+set}"; then + echo 'screenrc: using dark blue for remote screens' + sed_i 's/sorendition = Bw/sorendition = bw/' screenrc +else echo 'screenrc: removing remote options' grep_i -v '(REMOTE)' screenrc fi