It looks like you are using a recent version, where a single `Match`-object
will combine all its given parameters via and AND instead of an OR.
To match different windows, just pass more than one `Match`: E.g.
[Match(wm_class='geany'), Match(title='vim')]
On Sunday, 3 January 2021 at 16:56:43 UTC+1 Justine Smithies wrote:
> I have another question regarding matches. I have it all working fine but
> I would like to add to my dev group a check for title='vim' but no matter
> what i try i get errors. Is it not possible to check for wm_class and title
> on the same group ? as i would like to leave geany there but add a check
> for title='vim' too
>
> 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"])))
>
>
>
--
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/23c8ba03-c0bd-4f3e-94ab-29f2589e429fn%40googlegroups.com.