I have set up like this to assign some applications to specific groups:
assignments = {}
assignments["1"] = ["Xfce4-terminal", "xfce4-terminal"]
assignments["2"] = ["Chromium", "chromium"]
assignments["3"] = ["Code-oss", "Geany", "Mousepad",
                    "code-oss", "geany", "mousepad"]
assignments["4"] = ["Spotify", "spotify"]
assignments["5"] = ["Pcmanfm", "pcmanfm"]
@hook.subscribe.client_new
def assign_app_group(client):
    wm_class = client.window.get_wm_class()[0]
    for i in list(assignments.keys()):
        if wm_class in assignments[i]:
            client.togroup(i, switch_group=True)
I would like it to put applications in specific groups and then bring that 
group to screen. It works when I open a terminal in the 2nd group; it put 
that terminal to the 1st group 
and then brings the 1st group to screen. But when I want to open a second 
terminal when I am in the first group, it "toggles" back to the 2nd group; 
doesn't stay in the first 
one.


-- 
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/f2736d43-7884-48fd-ae43-d58be8d16138o%40googlegroups.com.

Reply via email to