X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fscreenrc;h=75bfcae06c9606e9daae05009859318165c399e4;hb=3ad6118386977e346d81042e924e5db9c5f15b7d;hp=f3194ef097b943822f56928a1da9066d2ec8bb4c;hpb=00ea00be6fb08da29d2443f0e423419f82b44f57;p=lhc%2Fateliers.git diff --git a/etc/screenrc b/etc/screenrc index f3194ef..75bfcae 100644 --- a/etc/screenrc +++ b/etc/screenrc @@ -30,10 +30,12 @@ termcapinfo xterm*|*rxvt* "" XT # NOTE: set these terminals up to be 'optimal' instead of vt100. termcapinfo xterm*|*rxvt*|Eterm* OP -backtick 1 0 0 hostname -backtick 2 0 84600 date '+%b' +backtick 1 0 60 sh -c 'users=$(who -u | cut -d " " -f 1 | sort -u); test "$(printf "%s\n" $users | wc -l)" -lt 2 || { users=$(printf "%s&" $users); printf "%s@" "${users%&}"; }' +# NOTE: show logged in users when not alone. +backtick 2 0 0 hostname +backtick 3 0 84600 date '+%b' hardstatus on -hardstatus alwayslastline "%{= kb} %-w%{kw}%n %t%{-}%+w %=%{..m} %{= kr}%1` %{kw}%D %d %2` %0c %{= dd}" +hardstatus alwayslastline "%{= kb} %-w%{kw}%n %t%{-}%+w %=%{..m} %{= ky}%1`%{= kr}%2` %{kw}%D %d %3` %0c %{= dd}" caption splitonly "%?%F%{= .bw}%:%{= .kw}%? %=%{..C}%n%{-} %t%= " sorendition wk