[sketchybar] update battery plugin
- fix <20 percentage
- hide percentage when at 100
change mpzlqprwuqmkormzskzvknsypvvyyvry
commit 36bf357ea9f31a4dbf1cdfcd99d9d8438b14d7ef
author Alpha Chen <alpha@kejadlen.dev>
date
parent totyuwyn
diff --git a/.config/sketchybar/plugins/battery.sh b/.config/sketchybar/plugins/battery.sh
index caf695a8..9753a6b8 100755
--- a/.config/sketchybar/plugins/battery.sh
+++ b/.config/sketchybar/plugins/battery.sh
@@ -25,7 +25,8 @@ fi
 
 sketchybar --set "$NAME" icon="$ICON" label="$PERCENTAGE%"
 
-# TDOO Move into the above sketchybar command
-if (( $PERCENTAGE < 20 )); then
+if (( PERCENTAGE < 20 )); then
   sketchybar --set "$NAME" label.drawing=on
+elif (( PERCENTAGE == 100 )); then
+  sketchybar --set "$NAME" label.drawing=off
 fi