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 <noreply@anthropic.com>
This commit is contained in:
parent
d6f943ba7f
commit
3fe859e21f
1 changed files with 6 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
|
# Prevent garbage frame flash before first render
|
||||||
|
"immediate, class:.*"
|
||||||
|
|
||||||
# Privacy: block from screen capture
|
# Privacy: block from screen capture
|
||||||
"noscreenshare, class:^(1password)$"
|
"noscreenshare, class:^(1password)$"
|
||||||
"noscreenshare, class:^(thunderbird)$"
|
"noscreenshare, class:^(thunderbird)$"
|
||||||
|
|
@ -21,8 +24,9 @@
|
||||||
# Kitty: slight transparency
|
# Kitty: slight transparency
|
||||||
"opacity 0.97 0.97, class:^(kitty)$"
|
"opacity 0.97 0.97, class:^(kitty)$"
|
||||||
|
|
||||||
# JetBrains: suppress phantom windows
|
# JetBrains: suppress phantom windows (RE2 doesn't support lookaheads,
|
||||||
"nofocus, class:^jetbrains-(?!toolbox), floating:1, title:^win\\d+$"
|
# 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+$"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue