window rules targeting xdgTag aren't honored #12169
Replies: 3 comments 4 replies
-
|
try windowrule = workspace 6,class:.*, xdgtag:proton-game |
Beta Was this translation helpful? Give feedback.
-
|
So i try all that before, xdgTag instead of xdgtag, tried to add into a tag, tried to add class, tittle in front of it, but it doesn't work at all in my end, i don't use git hirpland so maybe it could be that? I also use xdg-portal-hyprland instead of the wlr, maybe that also has something to do with it? |
Beta Was this translation helpful? Give feedback.
-
|
I want to update this post in case someone in the future comes across it, after updating to Hyprland version 0.52 now the xdgTag is working without any issues for me! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
when using recent versions of Proton GE, one can enable
PROTON_ENABLE_WAYLAND=1which does a few things, but the most relevant thing is that it adds an xdgTag ofproton-game. it also changes how the window class is handled, so rather thansteam_app_<id>you would just have something likegame.exe. having window rules that targetclass:^steam_app_is how many of us manage all steam games at once with a single window rule. however using PROTON_ENABLE_WAYLAND is necessary for some features (like HDR in Warframe), so we'll want to write rules against the xdgTag to cover the gap. that said - this doesn't seem to work atm. a rule targeting the correct window class works fine, but changing it to target the xdgTag causes the rule to be either ignored or otherwise misfired.hyprctl clientshas our example client as:and our window rule looks like:
windowrule = workspace 6, xdgtag:proton-gamewhich doesn't work, the game opens on the focused workspace instead.
interestingly, if you do
windowrule = tag +game, xdgtag:proton-game, then a window rule moving windows with the game tag to another workspace will work, so that's the workaround we're going with for now.and finally:
note that #11977 is tangentially relevant as it mentions using PROTON_ENABLE_WAYLAND to explicitly have the xdgTag to write window rules against
also note that https://www.reddit.com/r/hyprland/comments/1o8qed6/how_do_i_use_xdgtag_with_windowrules/ is almost certainly related to this report :)
Beta Was this translation helpful? Give feedback.
All reactions