wmii/rc/status

16 lines
327 B
Plaintext
Raw Normal View History

#!/bin/sh
2006-02-25 21:36:53 +03:00
# periodically print date and load average to the bar
status() {
echo -n `uptime | sed 's/.*://; s/,//g'`
echo -n ' | '
echo -n `date`
}
wmiir remove /rbar/status 2>/dev/null && sleep 2
echo $WMII_SELCOLORS | wmiir create /rbar/status
while wmiir xwrite /rbar/status "$WMII_NORMCOLORS" `status`
2006-02-25 21:36:53 +03:00
do
sleep 1
2006-02-25 21:36:53 +03:00
done