Hi everyone,
I’m trying to set up keyboard brightness control with notifications on my Qtile setup. Here’s what I’ve done so far:
I’ve created key bindings for F2 and F3 to adjust the keyboard backlight brightness using commands that modify /sys/class/leds/asus::kbd_backlight/brightness.
I want a notification to appear each time I adjust the brightness, with different icons for "Brightness Off" and "Brightness On".
My current key bindings look like this:
Key([], "F2", lazy.spawn("bash -c 'echo 0 > /sys/class/leds/asus::kbd_backlight/brightness && notify-send -u normal -i $HOME/.config/dunst/icons/keyboard-backlight-low.png \"Keyboard Backlight\" \"Brightness Off\"'")),
Key([], "F3", lazy.spawn("bash -c 'echo 1 > /sys/class/leds/asus::kbd_backlight/brightness && notify-send -u normal -i $HOME/.config/dunst/icons/keyboard-backlight-high.png \"Keyboard Backlight\" \"Brightness On\"'")),
However, I’m not seeing any notifications when I press F2 or F3. I’ve verified that notify-send works in other scripts, and I also confirmed the icons are in $HOME/.config/dunst/icons.
What I’ve Tried:
Question: Is there anything I might be missing in the key binding configuration, or is there another way I could troubleshoot this? Any help would be appreciated!
Thank you!