Hope this helps ?

workspaces = [
    {"name": " Home", "key": "1", "matches": [Match(wm_class='gimp')]},
    {"name": " Dev", "key": "2", "matches": [Match(wm_class='firefox')]},
    {"name": " Chat", "key": "3", "matches": [Match(wm_class='nemo')]},
    {"name": " GFX", "key": "4", "matches": [Match(wm_class='kitty')]},
    {"name": "阮 Music", "key": "5", "matches": [Match(wm_name='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 Wed, 16 Dec 2020, 23:55 Tycho Andersen, <[email protected]> wrote:

> On Wed, Dec 16, 2020 at 11:51:14PM +0000, Justine Smithies wrote:
> > I have most applications switching to their correct windows but Spotify
> > will not play ball. I've tried xprop to see what is in wm-class but no
> > matter what i do Spotify opens in the window i'm on not the one i've
> > assigned. any pointers ?
> >
> > workspaces = [
> >     {"name": " Home", "key": "1", "matches": [Match(wm_class='nemo')]},
> >     {"name": " Dev", "key": "2", "matches":
> [Match(wm_class='firefox')]},
> >     {"name": " Chat", "key": "3", "matches":
> [Match(wm_class='Spotify')]},
> >     {"name": " GFX", "key": "4", "matches": [Match(wm_class='kitty')]},
> >     {"name": "阮 Music", "key": "5", "matches": [Match(wm_class='gimp')]}
> > ]
>
> wm_class="Spotify" looks reasonable to me, that's what I use. Can you
> show where you construct the Group()s?
>
> 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/20201216235500.GB569712%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/CADrRWNYrWDvGzhiBFbiMZ6V4spYdyOWTtXeV0bw3jFCVpUKz-A%40mail.gmail.com.

Reply via email to