From db4189aa4975393349323ebf75ea8d67bc304b41 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Wed, 3 Jun 2026 23:51:28 +0530 Subject: add: floating window for chromium based pip window ; removal of pavucontrol window rules ; set proportions for kde picker --- niri/cfg/window-rules.kdl | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'niri/cfg') diff --git a/niri/cfg/window-rules.kdl b/niri/cfg/window-rules.kdl index 17b8d03..ed8c031 100644 --- a/niri/cfg/window-rules.kdl +++ b/niri/cfg/window-rules.kdl @@ -2,6 +2,9 @@ window-rule { match app-id=r#"firefox$"# title="^Picture-in-Picture$" match app-id=r#"zen$"# title="^Picture-in-Picture$" match app-id=r#"librewolf$"# title="^Picture-in-Picture$" + + match title=r#"^Picture in picture$"# + open-floating true // Anchor to the top edge of the screen. default-floating-position x=20 y=20 relative-to="bottom-right" @@ -14,11 +17,9 @@ window-rule { window-rule { match app-id="zen" match app-id="firefox" - match app-id="Chromium" - match app-id="google-chrome" + match app-id="chromium" match app-id="brave-browser" match app-id="librewolf" - match app-id="helium" open-maximized true } @@ -38,20 +39,13 @@ window-rule { default-window-height { proportion 0.7; } } -// Floating window rule for applications -window-rule { - // match app-id="mpv" - match app-id="pavucontrol" - open-floating true - default-column-width { proportion 0.75; } - default-window-height { proportion 0.7; } -} - // KDE file picker window-rule { match app-id="org.freedesktop.impl.portal.desktop.kde" open-floating true + default-column-width { proportion 0.5; } + default-window-height { proportion 0.5; } } // Rounded cornors for all windows -- cgit v1.3