commit db4189aa4975393349323ebf75ea8d67bc304b41
parent f595b592637d5f9dc76b90f97bbcad200f6a0f72
Author: ryukamish <[email protected]>
Date: Wed, 3 Jun 2026 23:51:28 +0530
add: floating window for chromium based pip window ; removal of pavucontrol window rules ; set proportions for kde picker
Diffstat:
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git 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