mirror of
https://github.com/0intro/wmii
synced 2024-11-29 17:13:11 +03:00
18 lines
326 B
Bash
18 lines
326 B
Bash
#!/bin/sh
|
|
# periodically print date and load average to the bar
|
|
|
|
wmiir remove /bar/status && sleep 2
|
|
|
|
xwrite() {
|
|
file="$1"; shift
|
|
echo -n "$@" | wmiir write "$file"
|
|
}
|
|
|
|
wmiir create /bar/status
|
|
xwrite /bar/status/colors $WMII_NORMCOLORS
|
|
|
|
while xwrite /bar/status/data `date` `uptime | sed 's/.*://; s/,//g'`
|
|
do
|
|
sleep 1
|
|
done
|