summaryrefslogtreecommitdiff
path: root/dwm-status.sh
blob: 52ad773ce16b19478c6210a77db55054ea475c2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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