refactor: refactored battery bash scripts into a C++ daemon

This commit is contained in:
devaine 2025-07-29 15:05:52 -05:00
commit 16690836d6
Signed by untrusted user who does not match committer: devaine
GPG key ID: 954B1DCAC6FF84EE
10 changed files with 215 additions and 2 deletions

View file

@ -11,6 +11,10 @@ bright_dec() {
}
keybind-func() {
echo "$CURRENT_BRIGHTNESS"
}
while test $# -gt 0; do
case "$1" in
inc)
@ -20,5 +24,10 @@ while test $# -gt 0; do
dec)
bright_dec && exit 0
;;
keybind)
keybind-func && exit 0
;;
esac
done