merge
[srid.dotfiles.git] / dot-wmii-3 / status
blobf16e7c9318aa4829dc3db9743272f93141266730
1 #!/bin/sh
2 # periodically print date and load average to the bar
4 xwrite() {
5 file="$1"; shift
6 echo -n "$@" | wmiir write "$file"
9 wmiir remove /bar/status 2>/dev/null && sleep 2
10 wmiir create /bar/status
11 xwrite /bar/status/colors $WMII_NORMCOLORS
13 while xwrite /bar/status/data `date "+%a %b %d %T"` `uptime | sed 's/.*://; s/,//g'`
15 sleep 1
16 done