Replacing the xbacklight call sans arguments with the more verbose xbacklight -get ensures that the volume/brightness script works with both xorg-xbacklight and its drop-in replacement acpilight, which supports more modern hardware (see https://wiki.archlinux.org/title/Backlight and https://gitlab.com/wavexx/acpilight).
Replacing the
xbacklight
call sans arguments with the more verbosexbacklight -get
ensures that the volume/brightness script works with bothxorg-xbacklight
and its drop-in replacementacpilight
, which supports more modern hardware (see https://wiki.archlinux.org/title/Backlight and https://gitlab.com/wavexx/acpilight).