Closed JoaoDiogoDuarte closed 2 years ago
You could be running into this issue (https://github.com/qtile/qtile/issues/2405) where the class is not correct when the window spawns.
Adapting one of the replies in the issue you linked, it worked!
@hook.subscribe.client_new
async def move_client(client):
await asyncio.sleep(0.01)
if client.name == "spotify":
client.cmd_togroup(group_name="7")
if client.name == "Home - Mozilla Thunderbird":
client.cmd_togroup(group_name="9")
However, I am not sure if this addressed the root cause as if you log the client name before the 'await asyncio.sleep', you get spotify and if you log it after, you also get spotify. I was expecting that the client name before the sleep would be (e.g.) None.
That's good news.
As for Spotify - your Match
rule was looking at the class, rather than the name. So try logging that and seeing if the class is None
.
$ xprop | grep CLASS
WM_CLASS(STRING) = "Mail", "Thunderbird"
Have you tried Thunderbird with a capital T wm_class="Thunderbird"
?
The issue:
I would like Thunderbird to open in group 9, but unfortunately, it seems to always open in group 8, no matter how I change my config. This occurs when thunderbird is launched at startup or when I open it during my workday (e.g. via a command or rofi). Below is the relevant section of the config:
This issue only happens with Thunderbird (and Spotify it seems, but I will try to fix it myself and if not, I will submit a new issue). I have confirmed with xprop that I am using the correct wm_class.
I am using version 0.21.1.dev9+g634a470a (straight from github but I had this issue in the stable 0.21.0). I cannot find anything of interest in the logs to include here.
Thanks!
Required: