what do these parameters indicate here like "bash", "-c" ? Key([], "XF86AudioMute", lazy.spawn(["bash", "-c", "pactl set-sink-mute 0 toggle && /home/Odd/.config/qtile/dunst_volume_monitor.sh"])),
and how the above function call is different from the this one: Key([], "XF86AudioMute", lazy.spawn("pactl set-sink-mute 0 toggle && /home/Odd/.config/qtile/dunst_volume_monitor.sh", shell=True)), is the spawn function overloaded. On Wednesday, July 17, 2024 at 12:04:01 AM UTC+5:30 Kai Stian Olstad wrote: > 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/afbc872c-99e1-48c3-b88f-619206bb5c9en%40googlegroups.com.