You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
239 B

#!/bin/sh
case $( cat /sys/class/power_supply/AC/online ) in
(0)
blight set $(cat ${HOME}/.backlight-bat)% 1> /dev/null 2> /dev/null
;;
(1)
blight set $(cat ${HOME}/.backlight-ac)% 1> /dev/null 2> /dev/null
;;
esac