diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 306dd3b..639ace2 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -256,18 +256,22 @@ in 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. hl.window_rule({ match = { class = "steam_app_0", title = "^$", float = true }, 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. hl.window_rule({ match = { class = "steam_app_default", title = "^World of Warcraft$" },