From 4b330f390e94e31f406cfaaad8e3397ebc3f89de Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Wed, 18 Jul 2018 13:15:05 +0200 Subject: [PATCH] screenrc: use dark blue for hardstatus on remote systems --- shell/screenrc.in | 3 ++- shell/setup.sh | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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 -- 2.45.2