give colors to uptime (blue) and users (red)

This commit is contained in:
Dustin Kirkland 2009-04-06 09:56:50 -07:00
commit b2426e011d
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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`