You can specify the rules in the dgroups list as
dgroups_app_rules = [ 
    Rule(Match(wm_class=['Vimb']), group=" WWW "), 
    Rule(Match(wm_class=['firefox']), group=" WWW "), 
    Rule(Match(wm_class=['discord']), group=" CHAT "), 
] 
I am using this in qtile version 0.16.1

On Thursday, January 14, 2021 at 9:31:22 PM UTC+5:30 Cullen Ross wrote:

> Yes, that is the relevant config section. From my tests, it seems like it 
> only works on the latest qtile-git (i.e. it will not work for qtile 
> v.0.16.1).
>
> On Tuesday, January 12, 2021 at 3:19:28 AM UTC-5 Cind wrote:
>
>> is this what i need in my config? because it's not working.
>>
>> workspaces = [
>>     {"name": "GEN", "key": "1", "matches": [Match(wm_class='firefox')]},
>>     {"name": "DEV", "key": "2", "matches": [Match(wm_class='zathura')]},
>>     {"name": "CHT", "key": "3", "matches": [Match(wm_class='discord')]},
>>     {"name": "SYS", "key": "4", "matches": [Match(wm_class='ranger')]},
>>     {"name": "MUS", "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 Tuesday, January 12, 2021 at 6:20:44 PM UTC+11 Justine Smithies wrote:
>>
>>> Have a look at my config.py as I have mine setup to open various apps in 
>>> various groups.
>>>
>>>
>>> https://github.com/justinesmithies/dotfiles/blob/master/.config/qtile/config.py
>>>
>>

-- 
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/f6f096ad-b6dc-4269-ab2d-23b9f2d62a58n%40googlegroups.com.

Reply via email to