From 3fe859e21f1b4ef46fc56667329d82b310c3401c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Sat, 28 Feb 2026 01:26:20 +0100 Subject: [PATCH] feat(hyprland): add immediate render rule to prevent frame flash Applies immediate rendering to all windows to eliminate the garbage frame flash that appears before first render. Also documents JetBrains phantom window suppression limitation (RE2 doesn't support lookaheads, so can't exclude toolbox). Co-Authored-By: Claude Sonnet 4.5 --- home/by-host/endurance/hyprland/window-rules.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/home/by-host/endurance/hyprland/window-rules.nix b/home/by-host/endurance/hyprland/window-rules.nix index b45d29d..8eef7db 100644 --- a/home/by-host/endurance/hyprland/window-rules.nix +++ b/home/by-host/endurance/hyprland/window-rules.nix @@ -1,6 +1,9 @@ {...}: { wayland.windowManager.hyprland.settings = { windowrulev2 = [ + # Prevent garbage frame flash before first render + "immediate, class:.*" + # Privacy: block from screen capture "noscreenshare, class:^(1password)$" "noscreenshare, class:^(thunderbird)$" @@ -21,8 +24,9 @@ # Kitty: slight transparency "opacity 0.97 0.97, class:^(kitty)$" - # JetBrains: suppress phantom windows - "nofocus, class:^jetbrains-(?!toolbox), floating:1, title:^win\\d+$" + # JetBrains: suppress phantom windows (RE2 doesn't support lookaheads, + # so we can't exclude toolbox here — apply per-IDE if needed) + # "nofocus, class:^(jetbrains-idea|jetbrains-rider|jetbrains-clion)$, floating:1, title:^win\\d+$" ]; }; }