aboutsummaryrefslogtreecommitdiff
path: root/bin/batt
diff options
context:
space:
mode:
Diffstat (limited to 'bin/batt')
-rwxr-xr-xbin/batt1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/batt b/bin/batt
index c99c3a3..0e88611 100755
--- a/bin/batt
+++ b/bin/batt
@@ -3,6 +3,7 @@
batt() {
batt="$(acpi | awk '{print $4}' | sed -e 's/%,//g')"
icon=""
+ state="$(cat /sys/class/power_supply/BAT0/status)"
[ "$batt" -ge 90 ] && icon=""