Ah it;s ok I see now. Thanks though.
On Fri, 18 Dec 2020 at 19:05, Justine Smithies <[email protected]>
wrote:
> Thank you Tycho but how would i implement that as this is what i have so
> far which works ?
>
> # Groups with matches
>
> workspaces = [
> {"name": " Home", "key": "1", "matches": [Match(wm_class='firefox')]},
> {"name": " Dev", "key": "2", "matches": [Match(wm_class='geany')]},
> {"name": " Chat", "key": "3", "matches":
> [Match(wm_class='telegram-desktop')]},
> {"name": " GFX", "key": "4", "matches": [Match(wm_class='gimp')]},
> {"name": "阮 Music", "key": "5", "matches":
> [Match(wm_class='spotify')]},
> ]
>
> groups = []
> for workspace in workspaces:
> matches = workspace["matches"] if "matches" in workspace else None
> groups.append(Group(workspace["name"], matches=matches,
> layout="monadtall"))
> keys.append(Key([mod], workspace["key"],
> lazy.group[workspace["name"]].toscreen()))
> keys.append(Key([mod, "shift"], workspace["key"],
> lazy.window.togroup(workspace["name"])))
>
>
>
>
>
>
> On Fri, 18 Dec 2020 at 18:50, Tycho Andersen <[email protected]> wrote:
>
>> On Fri, Dec 18, 2020 at 06:14:34PM +0000, Justine Smithies wrote:
>> > I have another question regarding matches and groups which I now have
>> > working perfectly. How would I get the group window to change to the
>> opened
>> > applications group ? So say I open Spotify it opens the app in group 5
>> but
>> > stays in my current group. I'd like it to automatically change to the
>> newly
>> > opened group. Would this also use the @hook.subscribe.client_new hook ?
>>
>> https://github.com/qtile/qtile-examples/blob/master/tych0/config.py#L119
>>
>> is one way.
>>
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/qtile-dev/20201218185027.GC587631%40cisco
>> .
>>
>
--
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/CADrRWNYjcz_v8_ZiMo2QTy%3Dpm6NvMao3CVbJkk9%3DXtUj9odYOQ%40mail.gmail.com.