commit 778e1a029460eea71a7fa118a6c36130cde7fc05
parent e95b7eaf2c64eb4358d4c1d5989b94cab2152cff
Author: Bakar Chargeishvili <bakar@bcharge.de>
Date:   Wed,  4 Dec 2024 11:18:51 +0100
Update batinfo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/batinfo b/batinfo
@@ -4,8 +4,8 @@ rem=$(sysctl hw.acpi.battery.life | awk {'print $2'})
 status=$(sysctl hw.acpi.battery.state | awk {'print $2'})
 time=$(acpiconf -i 0 | grep time | awk {'print $3'})
 
-if [ "$status" = "2" ]; then
-	echo "$rem% (charging)"
+if [ "$status" = "2" -o "$status" = "0" ]; then
+	echo "$rem% 🔌"
 fi
 
 if [ "$status" = "1" ]; then