From 07ee7b86df7ec9f936444a346defe7ed5c8cd571 Mon Sep 17 00:00:00 2001 From: rope Date: Sun, 17 May 2026 19:55:18 +0100 Subject: [PATCH] hyprland: revert to windowrulev2 for Battle.net tray rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit extraConfig is parsed as hyprlang by the HM module, not Lua — Lua syntax caused parse errors. windowrulev2 in settings is the correct approach. Co-Authored-By: Claude Sonnet 4.6 --- settings/hyprland.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 165cd79..277f3db 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -109,6 +109,12 @@ in settings = { # monitor is set per-host in hosts/FredOS-{Gaming,Macbook}.nix + # Battle.net tray icon leaks as a tiny floating XWayland window with + # class steam_app_0 and an empty title — send it to the void. + windowrulev2 = [ + "workspace special silent, class:^(steam_app_0)$, title:^()$, floating:1" + ]; + env = [ # Clear the LD_PRELOAD set by the start-hyprland wrapper so it # doesn't leak into child processes (Steam, games, etc.). @@ -335,14 +341,6 @@ in ]; }; - # Battle.net tray icon leaks as a tiny floating XWayland window with - # class steam_app_0 and an empty title — send it to the void. - extraConfig = '' - hl.window_rule({ - match = { class = "steam_app_0", title = "^$", float = true }, - workspace = "special silent", - }) - ''; }; programs.anyrun = {