X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fscreenrc;h=d203cafed45485df271b4ae4edb34eca316a1b89;hp=f3194ef097b943822f56928a1da9066d2ec8bb4c;hb=HEAD;hpb=00ea00be6fb08da29d2443f0e423419f82b44f57 diff --git a/etc/screenrc b/etc/screenrc index f3194ef..d203caf 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 "%{= db} %-w%{dd}%n %t%{-}%+w %=%{..m} %{= dy}%1`%{= dr}%2` %{dd}%D %d %3` %0c %{= dd}" caption splitonly "%?%F%{= .bw}%:%{= .kw}%? %=%{..C}%n%{-} %t%= " sorendition wk