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 <noreply@anthropic.com>
32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{...}: {
|
|
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)$"
|
|
"noscreenshare, title:^(ld\\.toph\\.so)$"
|
|
|
|
# Floating windows
|
|
"float, class:^(org\\.zealdocs\\.zeal)$"
|
|
"center 1, class:^(org\\.zealdocs\\.zeal)$"
|
|
"size 50% 80%, class:^(org\\.zealdocs\\.zeal)$"
|
|
"minsize 1400 500, class:^(org\\.zealdocs\\.zeal)$"
|
|
|
|
"float, class:^(speedcrunch)$"
|
|
"center 1, class:^(speedcrunch)$"
|
|
"size 30% 60%, class:^(speedcrunch)$"
|
|
|
|
"float, title:^(DevTools)$"
|
|
|
|
# Kitty: slight transparency
|
|
"opacity 0.97 0.97, class:^(kitty)$"
|
|
|
|
# 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+$"
|
|
];
|
|
};
|
|
}
|