From 3b830049b6640d63bf431fcb38aa0d1dcd77814e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 18 Nov 2025 15:52:28 +0000 Subject: [PATCH] rules: update for v3 syntax supersedes #1287 --- content/Configuring/Keywords.md | 27 ---------------------- content/Configuring/Tearing.md | 2 +- content/Configuring/Window-Rules.md | 14 +++++------ content/Useful Utilities/Screen-Sharing.md | 17 +++++++++----- 4 files changed, 19 insertions(+), 41 deletions(-) diff --git a/content/Configuring/Keywords.md b/content/Configuring/Keywords.md index 0ae02a86..075e1535 100644 --- a/content/Configuring/Keywords.md +++ b/content/Configuring/Keywords.md @@ -140,33 +140,6 @@ To set a wallpaper, use a wallpaper utility like More can be found in [Useful Utilities](../../Useful-Utilities). -## Blurring layerSurfaces - -Layer surfaces are not windows. These are, for example: wallpapers, -notification overlays, bars, etc. - -If you want to blur them, use a layer rule: - -```ini -layerrule = blur, NAMESPACE -# or -layerrule = blur, address:0x
-``` - -You can get the namespace / address from `hyprctl layers`. - -To remove a layer rule (useful in dynamic situations) use: - -```ini -layerrule = unset, -``` - -For example: - -```ini -layerrule = unset, NAMESPACE -``` - ## Setting the environment > [!NOTE] diff --git a/content/Configuring/Tearing.md b/content/Configuring/Tearing.md index da9a114c..cb884ce7 100644 --- a/content/Configuring/Tearing.md +++ b/content/Configuring/Tearing.md @@ -24,7 +24,7 @@ general { allow_tearing = true } -windowrule = immediate, class:^(cs2)$ +windowrule = match:class cs2, immediate yes ``` > [!WARNING] diff --git a/content/Configuring/Window-Rules.md b/content/Configuring/Window-Rules.md index 4357a478..392fe353 100644 --- a/content/Configuring/Window-Rules.md +++ b/content/Configuring/Window-Rules.md @@ -247,13 +247,13 @@ windowrule { animation = popin } -windowrule = noblur, match:class firefox # Disable blur for firefox -windowrule = move cursor -50% -50%, match:class kitty # Move kitty to the center of the cursor -windowrule = bordercolor rgb(FF0000) rgb(880808), match:fullscreen 1 # Set bordercolor to red if window is fullscreen -windowrule = bordercolor rgb(FFFF00), match:title .*Hyprland.* # Set bordercolor 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 = no_blur, 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 bordercolor to red if window is fullscreen +windowrule = border_color rgb(FFFF00), match:title .*Hyprland.* # Set bordercolor 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 ``` ### Notes diff --git a/content/Useful Utilities/Screen-Sharing.md b/content/Useful Utilities/Screen-Sharing.md index 441b2734..2f9a14b1 100644 --- a/content/Useful Utilities/Screen-Sharing.md +++ b/content/Useful Utilities/Screen-Sharing.md @@ -38,10 +38,15 @@ the same effect. See more information. For example: ```ini -windowrule = opacity 0.0 override, class:^(xwaylandvideobridge)$ -windowrule = noanim, class:^(xwaylandvideobridge)$ -windowrule = noinitialfocus, class:^(xwaylandvideobridge)$ -windowrule = maxsize 1 1, class:^(xwaylandvideobridge)$ -windowrule = noblur, class:^(xwaylandvideobridge)$ -windowrule = nofocus, class:^(xwaylandvideobridge)$ +windowrule { + name = xwayland-video-bridge-fixes + match:class = xwaylandvideobridge + + no_initial_focus = true + no_focus = true + no_anim = true + no_blur = true + max_size = 1 1 + opacity = 0.0 +} ```