config_sway/bin/brightness

14 lines
202 B
Bash
Executable file

#!/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