Add backlight control

This commit is contained in:
Michael Bradley 2024-02-26 15:58:52 -05:00
parent e6b9803dd8
commit f007ef2bc8
2 changed files with 19 additions and 3 deletions

15
eww/scripts/backlight Executable file
View file

@ -0,0 +1,15 @@
#!/bin/env sh
DELTA="5%"
case "$1" in
up) brightnessctl -m -c backlight set +"$DELTA"
;;
down) brightnessctl -m -c backlight set "$DELTA"-
;;
get) brightnessctl -m -c backlight get
;;
*) echo "Unrecognized command"; exit 1
;;
esac