From 4431df20bf6db3b59da3b255c6be96f3ba846c81 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Fri, 20 Mar 2026 23:15:52 +0530 Subject: feat: floating window and size control --- niri/cfg/window-rules.kdl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/niri/cfg/window-rules.kdl b/niri/cfg/window-rules.kdl index bff3ba4..2991cb9 100644 --- a/niri/cfg/window-rules.kdl +++ b/niri/cfg/window-rules.kdl @@ -1,6 +1,7 @@ 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$" open-floating true // Anchor to the top edge of the screen. default-floating-position x=20 y=20 relative-to="bottom-right" @@ -15,15 +16,25 @@ window-rule { match app-id="chromium" match app-id="google-chrome" match app-id="brave-browser" + match app-id="librewolf" open-maximized true } window-rule { match app-id="TUI.float" - match app-id=r#"zen"# title="Raindrop" open-floating true + default-column-width { proportion 0.75; } + default-window-height { proportion 0.7; } +} + +window-rule { + match app-id="mpv" + // Properties + open-floating true + default-column-width { proportion 0.7; } + default-window-height { proportion 0.8; } } // Rounded cornors for all windows -- cgit v1.3