sway: handle brightness keys
This commit is contained in:
parent
381755c4b8
commit
2e72543e96
2 changed files with 17 additions and 0 deletions
14
bin/brightness
Executable file
14
bin/brightness
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue