1 2 3 4 5 6 7 8 9 10
#!/bin/sh # Controls backlighting of LCD case $1 in "+") (xbacklight -inc 5 || brightnessctl s +5%) ;; "-") (xbacklight -dec 5 || brightnessctl s 5%-) esac