mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
give colors to uptime (blue) and users (red)
This commit is contained in:
parent
5ade286ce0
commit
b2426e011d
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ p="uptime"
|
|||
grep -qs "^$p=1$" "$HOME/.screen-profiles/status" || exit 0
|
||||
|
||||
u=$(sed "s/\..*$//" /proc/uptime)
|
||||
printf "\005{=b }"
|
||||
printf "\005{= b}"
|
||||
if [ "$u" -gt 86400 ]; then
|
||||
printf "%dd" `echo "$u" | awk '{printf "%.0f", $1 / 86400 }'`
|
||||
elif [ "$u" -gt 3600 ]; then
|
||||
|
|
|
@ -24,4 +24,4 @@
|
|||
p="users"
|
||||
grep -qs "^$p=1$" "$HOME/.screen-profiles/status" || exit 0
|
||||
|
||||
printf "\005{=b }%d#\005{-} " `who | wc -l`
|
||||
printf "\005{= r}%d#\005{-} " `who | wc -l`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue