aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Window-Rules.md
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/Configuration:-Window-Rules.md')
-rw-r--r--wiki/Configuration:-Window-Rules.md12
1 files changed, 8 insertions, 4 deletions
diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md
index 8dc7c4be..6fd5e2a8 100644
--- a/wiki/Configuration:-Window-Rules.md
+++ b/wiki/Configuration:-Window-Rules.md
@@ -244,6 +244,8 @@ To be precise, they apply at the point when niri sends the initial configure req
Set the default width for the new window.
+This works for floating windows too, despite the word "column" in the name.
+
```kdl
// Give Blender and GIMP some guaranteed width on opening.
window-rule {
@@ -261,14 +263,16 @@ window-rule {
<sup>Since: next release</sup>
-Set the default height for the new window if it opens as floating.
+Set the default height for the new window.
```kdl
-// Make Alacritty take 50% of the screen height on opening.
+// Open the Firefox picture-in-picture window as floating with 480×270 size.
window-rule {
- match app-id="^Alacritty$"
+ match app-id="firefox$" title="^Picture-in-Picture$"
- default-window-height { proportion 0.5; }
+ open-floating true
+ default-column-width { fixed 480; }
+ default-window-height { fixed 270; }
}
```