Skip to content

Instantly share code, notes, and snippets.

@tshm
Created August 29, 2008 00:38
Show Gist options
  • Save tshm/7869 to your computer and use it in GitHub Desktop.
Save tshm/7869 to your computer and use it in GitHub Desktop.
#!/bin/sh
# acpi notifier
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 | dzen2 $GEOM -fn rk16 -p -e 'entertitle=exit'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment