Skip to content
Salman Farooq edited this page Dec 22, 2024 · 2 revisions

Tips and Tricks

Turn the keyboard backlight on when manually lowering the screen brightness

Bind your brightness up/down keys to something like this:

#!/usr/bin/fish

set -l display amdgpu_bl2
set -l keyboard tpacpi::kbd_backlight

if test $argv[1] = "+"
    brightnessctl --device=$display set +5%
else if test $argv[1] = -
    brightnessctl --device=$display set 5%-
else
    echo "Invalid Option"
    exit 1
end

sleep 0.1

set -l current (brightnessctl --device=$display get)

if test $current -lt 25
    brightnessctl --device=$keyboard set 1
else if test $current -lt 40
    brightnessctl --device=$keyboard set 2
else
    brightnessctl --device=$keyboard set 0
end

See #130 for why this isn't implemented within wluma.