diff options
Diffstat (limited to 'keyboard')
| -rwxr-xr-x | keyboard/bl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/keyboard/bl b/keyboard/bl index 4ddff29..7cfd73c 100755 --- a/keyboard/bl +++ b/keyboard/bl @@ -1,5 +1,5 @@ #!/bin/sh -# Depends on ddcutil, light +# Depends on ddcutil, brightnessctl # Config sleep_multiplier=.1 # Set this as low as you can get away with bl_vcp=0x10 # 0x10 is the standard VCP for controlling the backlight @@ -28,10 +28,10 @@ i2c_group() { if xrandr | grep -E '(eDP|LVDS-[0-9]) connected' > /dev/null; then case $1 in - set) light -S $2 ;; - inc|+) light -A $2 ;; - dec|-) light -U $2 ;; - get|*) printf "eDP: " && light | tr -d '\n' && echo '%' ;; + set) brightnessctl s ${2}% ;; + inc|+) brightnessctl s +${2}% ;; + dec|-) brightnessctl s ${2}%- ;; + get|*) printf "eDP: " && brightnessctl -m i | cut -d, -f4 ;; esac fi |
