Update Window Rule syntax

Updated the examples to follow the latest spec
This commit is contained in:
Pere Gomila 2025-11-25 08:24:22 +01:00 committed by GitHub
parent 03d8861fc2
commit c5c99919b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -247,13 +247,13 @@ windowrule {
animation = popin
}
windowrule = no_blur, match:class firefox # Disable blur for firefox
windowrule = no_blur on, match:class firefox # Disable blur for firefox
windowrule = move (cursor_x-(window_w*0.5)) (cursor_y-(window_h*0.5)), match:class kitty # Move kitty to the center of the cursor
windowrule = border_color rgb(FF0000) rgb(880808), match:fullscreen 1 # Set border color to red if window is fullscreen
windowrule = border_color rgb(FFFF00), match:title .*Hyprland.* # Set border color to yellow when title contains Hyprland
windowrule = opacity 1.0 override 0.5 override 0.8 override, match:class kitty # Set opacity to 1.0 active, 0.5 inactive and 0.8 fullscreen for kitty
windowrule = match:class kitty, rounding 10 # Set rounding to 10 for kitty
windowrule = match:class (pinentry-)(.*), stayfocused # Fix pinentry losing focus
windowrule = match:class (pinentry-)(.*), stay_focused on # Fix pinentry losing focus
```
### Notes