blob: 52ad773ce16b19478c6210a77db55054ea475c2d (
plain) (
tree)
|
|
#!/bin/sh
while true
do
date=$(date "+%a %b %d %I:%M %p")
batt=$(acpiconf -i 0 | egrep -o "([0-9]+%)")
disk=$(df -H | awk '{ if ($6 == "/") print $4 }')
#ssid=$(ifconfig | egrep -o '*ssid (.*) ')
idle=$(top -n | egrep -o '[0-9]+\.[0-9]% idle')
xsetroot -name "$ssid $idle $disk free $batt charged $date"
sleep 5
done
|