Awesome, i had to tweak it a bit to fit my code, but now is working, thanks a lot! man
Cheers! On Thursday, December 2, 2021 at 2:14:57 AM UTC-6 Milkias Yeheyis wrote: > You can just put this function in your config and you should achieve this. > @hook.subscribe.client_new > def follow_window(client): > for group in groups: > match = next((m for m in group.matches if m.compare(client)), > None) > if match: > targetgroup = qtile.groups_map[group.name] > targetgroup.cmd_toscreen(toggle=False) > break > > On Monday, November 29, 2021 at 10:10:28 PM UTC+3 [email protected] wrote: > >> Thanks i will check into that >> >> On Monday, November 29, 2021 at 6:53:33 AM UTC-6 [email protected] >> wrote: >> >>> You might could do something based on window-alerts. That would require >>> the program in question to create the alert when something happens, which >>> FireFox would do in the situation. >>> >>> Otherwise, you could use a hook that triggers whenever a window is >>> opened, have it check whether it's a window you want to focus on, then >>> switch to the group corresponding to that window. This won't work if, in >>> your example, FireFox is already open; then you'll need to rely on window >>> alerts. >>> >>> On Sun, Nov 28, 2021, 20:15 Gibranlp <[email protected]> wrote: >>> >>>> Hi all, >>>> >>>> I was wondering if is possible to make qtile go to a group where a >>>> specific app is called to be open, im using match to open specific apps in >>>> specific groups, and i have shortcuts that open a specific app and move >>>> the >>>> focus group to the specific group where the app is going to be opened. >>>> >>>> What im asking is how can i make when "invountarily" an app opens lets >>>> say when i click a link from thunderbird and then thunderbird opens >>>> firefox, on the specific group where firefox is set, which is not the same >>>> as thunderbird, the app gets open, but my focus is still on the >>>> thunderbird >>>> group, i want o go to the firefox group when it gets opened >>>> >>>> Is it possible? >>>> >>>> I hope i explained my issue properly, thanks. >>>> >>>> -- >>>> 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 on the web visit >>>> https://groups.google.com/d/msgid/qtile-dev/e5d6d01d-d1f7-4e43-9442-e2f9aefae07dn%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/qtile-dev/e5d6d01d-d1f7-4e43-9442-e2f9aefae07dn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- 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 on the web visit https://groups.google.com/d/msgid/qtile-dev/83445704-58a9-4a33-a82d-3e166ed53ffcn%40googlegroups.com.
