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:*
- Checked the icon paths to make sure they’re correct.
- Tested the notify-send command directly in the terminal, and it works
as expected.
*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!
--
You received this message because you are subscribed to the Google Groups
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/qtile-dev/945d5f9f-3684-46b7-aa58-93e9e35c256fn%40googlegroups.com.