*where did i look for what ? i am sorry i am not able to keep up with this conversation effectively, i am very new to forums and CS.*
On Tuesday, July 16, 2024 at 11:22:21 PM UTC+5:30 Tycho Andersen wrote: > On Tue, Jul 16, 2024 at 07:39:53PM +0200, 'Kai Stian Olstad' via qtile-dev > wrote: > > On Tue, Jul 16, 2024 at 10:01:17AM -0700, Piyush Chaudhary wrote: > > > config.py: > > > > > > Key([], "XF86AudioMute", lazy.spawn("bash", "-c", "pactl set-sink-mute > 0 > > > toggle && /home/Odd/.config/qtile/dunst_volume_monitor.sh") > > > Key([], "XF86AudioLowerVolume", lazy.spawn("bash", "-c", "pactl > > > set-sink-volume 0 -10% && > /home/Odd/.config/qtile/dunst_volume_monitor.sh"), > > > Key([], "XF86AudioRaiseVolume", lazy.spawn("bash", "-c", "pactl > > > set-sink-volume 0 +10% && > /home/Odd/.config/qtile/dunst_volume_monitor"), > > > > > > i did as told above but noting worked, additionally qtile broke down > in a > > > weird way like not opening terminal, not switching workspaces, not > opening > > > applications: > > > > My solution doesn't work, I have seen this someplace so I thought it > would > > work. > > > > But as Tycho said, it has shell=True so you can do this. > > Key([], "XF86AudioMute", lazy.spawn("pactl set-sink-mute 0 toggle && > /home/Odd/.config/qtile/dunst_volume_monitor.sh", shell=True), > > > > > > > On Tuesday, July 16, 2024 at 8:54:59 PM UTC+5:30 Tycho Andersen wrote: > > > > > > > toggle && /home/Odd/.config/qtile/dunst_volume_monitor.sh")), > > > > > > > > There is `shell=True` though, which you can use to spawn a command > > > > inside a shell. > > > > Aha, thanks. It's not in the documentation unfortunately. > > But found a PR, https://github.com/qtile/qtile/pull/4709, that it also > support > > env :-) > > I see it in the docs: > https://docs.qtile.org/en/stable/manual/commands/api/root.html#libqtile.core.manager.Qtile.spawn > > but maybe we are generating them in multiple places? where did you > look? > > Tycho > -- 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/a46da6de-15bb-491c-a1f4-938be6da8425n%40googlegroups.com.