commit df289861e4f17ebea464e542821e37f01d84f738
parent ef66fd738ff7477eebb93294af2b943abede48e0
Author: hhvn <hayden@haydenvh.com>
Date: Mon, 15 Feb 2021 20:25:43 +0000
.scripts/dwmblocks/README .scripts/dwmblocks/bat: add # marker for a full battery
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.scripts/dwmblocks/README b/.scripts/dwmblocks/README
@@ -7,3 +7,4 @@
| ? = unknown | D = downloading | light blue = day (sunny)
| + = charging | Q = queued | white = day (cloudy)
| - = discharging
+ | # = full
diff --git a/.scripts/dwmblocks/bat b/.scripts/dwmblocks/bat
@@ -13,6 +13,6 @@ done
num=$(echo "scale=2; ($charge/$total)*21" | bc | sed 's~\..*$~~')
ind="^c#aa6600^?"
[ "$charging" = "y" ] && ind="^c#00aa00^+"
-[ $num -ge 19 ] && ind="^c#00aa00^+"
+[ $num -ge 19 ] && ind="^c#00aa00^#"
[ "$discharging" = "y" ] && ind="^c#aa0000^-"
printf " ^c#555555^^r0,5,2,4^^r2,2,22,10^^d^^r3,3,20,8^^r$((23-$num)),3,$num,8^^d^^f24^$ind^d^ "