mirror of
https://github.com/0intro/wmii
synced 2024-11-29 17:13:11 +03:00
15 lines
333 B
Bash
15 lines
333 B
Bash
#!/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
|
|
echo $WMII_SELCOLORS | wmiir create /rbar/status
|
|
while xwrite /rbar/status "$WMII_NORMCOLORS" `date` `uptime | sed 's/.*://; s/,//g'`
|
|
do
|
|
sleep 1
|
|
done
|