simpler defaults

This commit is contained in:
Sean Pringle
2014-12-29 21:15:52 +10:00
parent f9fd35e5cb
commit a45ac3e8b6
2 changed files with 8 additions and 18 deletions

7
status
View File

@@ -2,9 +2,4 @@
# xoat displays root window name in spot1 bar
datetime=$(date '+%a %b %d %R')
temp=$(cat /sys/class/thermal/thermal_zone0/temp | cut -b1-2)
cpu=$(top -b -d 0.1 -n2 | grep '%Cpu' | tail -n1 | awk '{ printf "%02d", 100-$8}')
battery=$(acpi | awk -F"[ %]" '{print $4}')
volume=$(amixer get Master | tail -n 1 | awk -F"[][%]" '{print $2}')
xsetroot -name "${datetime} Bat ${battery}% CPU ${cpu}% Temp ${temp}C Vol ${volume}%"
xsetroot -name "${datetime}"