That's it ! Thank you so much and happy new year to you. ;)
On Thu, 31 Dec 2020 at 14:39, Marco Obaid <[email protected]> wrote: > Try this hook ... It works in my environment using group matches. > > @hook.subscribe.client_new > def modify_window(client): > #if (client.window.get_wm_transient_for() or > client.window.get_wm_type() in floating_types): > # client.floating = True > > for group in groups: # follow on auto-move > match = next((m for m in group.matches if m.compare(client)), None) > if match: > targetgroup = client.qtile.groups_map[group.name] # there > can be multiple instances of a group > targetgroup.cmd_toscreen(toggle=False) > break > > > > On Wed, Dec 30, 2020 at 11:43 AM Justine Smithies <[email protected]> > wrote: > >> Thank you so much for your help. >> >> On Wed, 30 Dec 2020, 17:28 Marco Obaid, <[email protected]> wrote: >> >>> Ok, I will load your config and see what’s going on. >>> >>> Sent from my iPhone >>> >>> On Dec 30, 2020, at 11:24 AM, Justine Smithies <[email protected]> >>> wrote: >>> >>> >>> I can't seem to get that to work ??? >>> >>> >>> On Wed, 30 Dec 2020 at 01:46, <[email protected]> wrote: >>> >>>> >>>> >>>> >>>> >>>> *From:* Marco Obaid <[email protected]> >>>> *Sent:* Tuesday, December 29, 2020 7:45 PM >>>> *To:* [email protected] >>>> *Subject:* FW: [qtile-dev] Help with automatically switching to a group >>>> >>>> >>>> >>>> You probably need to add the hook below. I believe the “toggle=False” >>>> what did the trick for me. >>>> >>>> >>>> >>>> @hook.subscribe.client_new >>>> >>>> def modify_window(client): >>>> >>>> if (client.window.get_wm_transient_for() or >>>> client.window.get_wm_type() in floating_types): >>>> >>>> client.floating = True >>>> >>>> >>>> >>>> for group in groups: # follow on auto-move >>>> >>>> match = next((m for m in group.matches if m.compare(client)), >>>> None) >>>> >>>> if match: >>>> >>>> targetgroup = client.qtile.groups_map[group.name] # there >>>> can be multiple instances of a group >>>> >>>> targetgroup.cmd_toscreen(toggle=False) >>>> >>>> break >>>> >>>> >>>> >>>> >>>> >>>> *From:* [email protected] <[email protected]> *On >>>> Behalf Of *Justine Smithies >>>> *Sent:* Tuesday, December 29, 2020 4:20 PM >>>> *To:* [email protected] >>>> *Subject:* Re: [qtile-dev] Help with automatically switching to a group >>>> >>>> >>>> >>>> Hope this helps ? >>>> >>>> >>>> >>>> >>>> https://github.com/justinesmithies/dotfiles/blob/master/.config/qtile/config.py >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> On Tue, 29 Dec 2020 at 22:01, Marco Obaid <[email protected]> >>>> wrote: >>>> >>>> Can you share your config? >>>> >>>> Sent from my iPhone >>>> >>>> >>>> >>>> On Dec 29, 2020, at 3:37 PM, Justine Smithies <[email protected]> >>>> wrote: >>>> >>>> >>>> >>>> I'm not sure if I'm explaining this correctly but I have managed to get >>>> certain apps to open in a set group say for example I have groups 1-4 and >>>> if I open geany it opens in group 2. This is fantastic but I still have to >>>> Windows key and number 2 to get to it. Is there a way to have this take >>>> place automatically when an app is opened ? >>>> >>>> -- >>>> 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/CADrRWNbj7vOktyO7u3XMuOQQo-DbA4U4ufC8_DB6yc%3DuvwXf8w%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/qtile-dev/CADrRWNbj7vOktyO7u3XMuOQQo-DbA4U4ufC8_DB6yc%3DuvwXf8w%40mail.gmail.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/7D927886-7021-4467-992F-54EE8D498523%40gmail.com >>>> <https://groups.google.com/d/msgid/qtile-dev/7D927886-7021-4467-992F-54EE8D498523%40gmail.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/CADrRWNYsusMRcni72OaKY_MDnHREN7CZv2Kk6DuahswAvwYo2w%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/qtile-dev/CADrRWNYsusMRcni72OaKY_MDnHREN7CZv2Kk6DuahswAvwYo2w%40mail.gmail.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/006e01d6de4d%2492807af0%24b78170d0%24%40gmail.com >>>> <https://groups.google.com/d/msgid/qtile-dev/006e01d6de4d%2492807af0%24b78170d0%24%40gmail.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/CADrRWNaZubf0Q4SZRqkAkT3xNHcrsA-p1Vu3aTVoH-BxtssHTA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/qtile-dev/CADrRWNaZubf0Q4SZRqkAkT3xNHcrsA-p1Vu3aTVoH-BxtssHTA%40mail.gmail.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/53524AFF-4A9B-4BCA-A5FB-F9E28B8AE0CA%40gmail.com >>> <https://groups.google.com/d/msgid/qtile-dev/53524AFF-4A9B-4BCA-A5FB-F9E28B8AE0CA%40gmail.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/CADrRWNY%2BKwmaMnSGhcPy3JQP_rA5zYOnjsovrc53ELjcDaWeCQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/qtile-dev/CADrRWNY%2BKwmaMnSGhcPy3JQP_rA5zYOnjsovrc53ELjcDaWeCQ%40mail.gmail.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/CABZGO-ryh0e4LYjaZQUsSjjsZ2Rz-di2%2BxQ4ro7iofaP_r-NeQ%40mail.gmail.com > <https://groups.google.com/d/msgid/qtile-dev/CABZGO-ryh0e4LYjaZQUsSjjsZ2Rz-di2%2BxQ4ro7iofaP_r-NeQ%40mail.gmail.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/CADrRWNZPu7Jj16063LKGfY4PVcmBV6FWEVejoBDbJCYJfs%3DN1Q%40mail.gmail.com.
