From 2c1c1d8897b9270432df9983209b22b02f1bf891 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@pinebookpro" Date: Wed, 9 Sep 2020 12:37:14 +0200 Subject: [PATCH] Add battery with simple awk command using upower --- dotfiles/i3/blocks | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/i3/blocks b/dotfiles/i3/blocks index 1f65c3d..1a069f8 100644 --- a/dotfiles/i3/blocks +++ b/dotfiles/i3/blocks @@ -82,6 +82,10 @@ interval=5 LABEL_ON= LABEL_OFF= +[battery] +command=echo "$(upower -d | grep 'percentage' | awk '{ print $2 }')" +interval=30 + [calendar] interval=60 LABEL=