diff --git a/bin/statusbar b/bin/statusbar index cdf2303..3e59ea7 100755 --- a/bin/statusbar +++ b/bin/statusbar @@ -2,8 +2,9 @@ #DATE=$(while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done) DATE=$(date +'%Y-%m-%d %k:%M') -POWER="| $(upower -i /org/freedesktop/UPower/devices/battery_BAT|grep percentage|awk '{print $2}')" -BSTATE=$(upower -i /org/freedesktop/UPower/devices/battery_BAT|grep state|awk '{print $2}') +BATTERY=$(upower --enumerate|grep battery) +POWER="| $(upower -i $BATTERY|grep percentage|awk '{print $2}')" +BSTATE=$(upower -i $BATTERY|grep state|awk '{print $2}') # fully-charged 🔌 # charging ⚡