From b165b55e82354705f68cd89a109b22e35b030929 Mon Sep 17 00:00:00 2001 From: rope Date: Sun, 17 May 2026 19:51:45 +0100 Subject: [PATCH] hyprland: use Lua window rule for Battle.net tray window Replace deprecated windowrulev2 hyprlang syntax with the Hyprland 0.55+ Lua hl.window_rule() API via extraConfig. Co-Authored-By: Claude Sonnet 4.6 --- settings/hyprland.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 15b3953..165cd79 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -109,12 +109,6 @@ 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.). @@ -340,6 +334,15 @@ in ", XF86AudioPrev, exec, playerctl previous" ]; }; + + # 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 = {