- #!/bin/sh
- # script to decrease the keyboard backlight brightness by 10%
- device=$(brightnessctl -l | grep "kbd_backlight" | head -n 1 | awk '{print $2}' | tr -d "'")
- brightness=$(brightnessctl -d "${device}" | grep Current | awk -F '[)(]' '{print $2 - 10}')
- brightnessctl -d "${device}" set "$brightness"%
|