aboutsummaryrefslogtreecommitdiff
path: root/src/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local')
-rwxr-xr-xsrc/usr/local/bin/bat-led-set2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/bin/bat-led-set b/src/usr/local/bin/bat-led-set
index 8a7397e..1c59a05 100755
--- a/src/usr/local/bin/bat-led-set
+++ b/src/usr/local/bin/bat-led-set
@@ -1,3 +1,3 @@
#!/bin/sh
-echo $1 >/sys/class/leds/input3::capslock/brightness
+cat /sys/class/power_supply/BAT*/capacity | xargs -n1 test 5 -ge && echo $1 >/sys/class/leds/input3::capslock/brightness