commit 4431df20bf6db3b59da3b255c6be96f3ba846c81
parent 51b31d6088b45d0f5d2d76913cbce3e2a6b90fee
Author: ryukamish <[email protected]>
Date: Fri, 20 Mar 2026 23:15:52 +0530
feat: floating window and size control
Diffstat:
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git 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