aboutsummaryrefslogtreecommitdiff
path: root/src/usr/local/bin/bat-led-set
blob: 1c59a05495f42197617e7c1d6a1aba4875ead541 (plain)
1
2
3
#!/bin/sh

cat /sys/class/power_supply/BAT*/capacity | xargs -n1 test 5 -ge && echo $1 >/sys/class/leds/input3::capslock/brightness