Add backlight control
This commit is contained in:
parent
e6b9803dd8
commit
f007ef2bc8
2 changed files with 19 additions and 3 deletions
15
eww/scripts/backlight
Executable file
15
eww/scripts/backlight
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue