tshm
1/31/2014 - 5:36 AM

dzen_awesome_showacpi.sh

#!/bin/sh
LANG=C
FG="white"
BG="#555"
W=500
X=$(xwininfo -root | awk "/Width:/{print \$2-$W}")
Y=20
GEOM="-fg $FG -bg $BG -y $Y -x $X -w $W"
ACPI=$(acpi)

acpi | dzen2 $GEOM -fn rk16 -p -e 'entertitle=exit'
#echo "naughty.notify({text = \"$ACPI\"})" | awesome-client