Last active 1731171054

dominic revised this gist 1731171054. Go to revision

1 file changed, 14 insertions

powersave-arch.sh(file created)

@@ -0,0 +1,14 @@
1 + #!/bin/sh
2 + #
3 + # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com>
4 +
5 + case $( cat /sys/class/power_supply/AC/online ) in
6 +
7 + (0)
8 + blight set $(cat ${HOME}/.backlight-bat)% 1> /dev/null 2> /dev/null
9 + ;;
10 + (1)
11 + blight set $(cat ${HOME}/.backlight-ac)% 1> /dev/null 2> /dev/null
12 + ;;
13 +
14 + esac
Newer Older