From 6444a2db97c103d26b420e61df9cca6c827195dc Mon Sep 17 00:00:00 2001 From: rope Date: Tue, 21 Jul 2026 20:19:46 +0100 Subject: [PATCH] hyprland: generic steam_app_ tile rule, drop per-game rules --- settings/hyprland.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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$" },