Add battery with simple awk command using upower

This commit is contained in:
flyingscorpio@pinebookpro 2020-09-09 12:37:14 +02:00
parent 8787726512
commit 2c1c1d8897

View file

@ -82,6 +82,10 @@ interval=5
LABEL_ON=<span foreground='#17d427'>  </span>
LABEL_OFF=<span foreground='#c90f1f'>  </span>
[battery]
command=echo "$(upower -d | grep 'percentage' | awk '{ print $2 }')"
interval=30
[calendar]
interval=60
LABEL=<span foreground='#ffca8c'>  </span>