最后活跃于 1731171054

dominic 修订了这个 Gist 1731171054. 转到此修订

1 file changed, 14 insertions

powersave-arch.sh(文件已创建)

@@ -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
上一页 下一页