hyprland: generic steam_app_ tile rule, drop per-game rules
This commit is contained in:
parent
e295d84b11
commit
6444a2db97
1 changed files with 10 additions and 6 deletions
|
|
@ -256,18 +256,22 @@ in
|
||||||
idle_inhibit = "fullscreen",
|
idle_inhibit = "fullscreen",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Steam games often open floating (fixed XWayland size hints);
|
||||||
|
-- force tile generically. Rule order matters: the Battle.net
|
||||||
|
-- tray-icon rule below is more specific and runs after, so it
|
||||||
|
-- still wins and keeps the tray icon floated on its hidden
|
||||||
|
-- workspace.
|
||||||
|
hl.window_rule({
|
||||||
|
match = { class = "^steam_app_.*" },
|
||||||
|
tile = true,
|
||||||
|
})
|
||||||
|
|
||||||
-- Battle.net tray icon leaks as a tiny floating XWayland window.
|
-- Battle.net tray icon leaks as a tiny floating XWayland window.
|
||||||
hl.window_rule({
|
hl.window_rule({
|
||||||
match = { class = "steam_app_0", title = "^$", float = true },
|
match = { class = "steam_app_0", title = "^$", float = true },
|
||||||
workspace = "special silent",
|
workspace = "special silent",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Tiny Terraces opens floating by default; force it to tile.
|
|
||||||
hl.window_rule({
|
|
||||||
match = { class = "steam_app_3136330" },
|
|
||||||
tile = true,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- WoW keeps requesting fullscreen/maximize; ignore so it stays tiled.
|
-- WoW keeps requesting fullscreen/maximize; ignore so it stays tiled.
|
||||||
hl.window_rule({
|
hl.window_rule({
|
||||||
match = { class = "steam_app_default", title = "^World of Warcraft$" },
|
match = { class = "steam_app_default", title = "^World of Warcraft$" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue