wmii/rc/status

15 lines
310 B
Plaintext
Raw Normal View History

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