sway: handle brightness keys

This commit is contained in:
Konstantin Koslowski 2021-01-03 13:18:37 +01:00
parent 381755c4b8
commit 2e72543e96
2 changed files with 17 additions and 0 deletions

14
bin/brightness Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
DEVICE=sysfs/backlight/intel_backlight
case $1 in
d*)
light -s $DEVICE -U 10
;;
i*)
light -s $DEVICE -A 10
;;
*)
echo "ERROR: invalid command: \"$1\""
;;
esac