Sorry, 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/odd/.config/dunst/icons/keyboard-backlight-off.png " " ' "), Key([], "F3", lazy.spawn("bash -c 'echo 1 > /sys/class/leds/asus::kbd_backlight/brightness' && notify-send -u normal -i /home/odd/.config/dunst/icons/keyboard-backlight-on.png " " ' "),
On Wednesday, November 6, 2024 at 4:18:51 PM UTC+5:30 fork_me_maybe wrote: > 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 qtile-dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/qtile-dev/b9fb6d52-d71a-4fcb-a613-7532a8046722n%40googlegroups.com.