On Tue, Jul 16, 2024 at 11:16:55AM -0700, Piyush Chaudhary wrote:
Ok its working now i used shell = True and it worked:
Key([], "XF86AudioMute", lazy.spawn("pactl set-sink-mute 0 toggle &&
/home/Odd/.config/qtile/dunst_volume_monitor.sh", shell=True)),
It was not working when i used this:
Key([], "XF86AudioMute", lazy.spawn("bash", "-c", "pactl set-sink-mute 0
toggle && /home/Odd/.config/qtile/dunst_volume_monitor.sh")),
Can you explain why ?
Because I forgot to include [], so this line would also work.
Key([], "XF86AudioMute", lazy.spawn(["bash", "-c", "pactl set-sink-mute 0 toggle &&
/home/Odd/.config/qtile/dunst_volume_monitor.sh"])),
--
Kai Stian
--
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 on the web visit
https://groups.google.com/d/msgid/qtile-dev/t2huzjbdrhfh6wssdof6dh3ihw7utzmpm7vwrrrixho5lmsqzh%406pmhurocoplr.