aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Window-Rules.md
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-02-06 09:09:07 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-02-10 07:29:33 -0800
commit1515410012842c419e8bc3de717b8a51b1a0b45c (patch)
tree988f966aaa44dc39f20286cc3783296da3bee7fa /wiki/Configuration:-Window-Rules.md
parent8f9e0d029c84f6a15c842c3bccd694fac0516c0a (diff)
downloadniri-1515410012842c419e8bc3de717b8a51b1a0b45c.tar.gz
niri-1515410012842c419e8bc3de717b8a51b1a0b45c.tar.bz2
niri-1515410012842c419e8bc3de717b8a51b1a0b45c.zip
Add default-column-display window rule
Diffstat (limited to 'wiki/Configuration:-Window-Rules.md')
-rw-r--r--wiki/Configuration:-Window-Rules.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md
index d14f36d7..03fd2e1d 100644
--- a/wiki/Configuration:-Window-Rules.md
+++ b/wiki/Configuration:-Window-Rules.md
@@ -52,6 +52,7 @@ window-rule {
block-out-from "screencast"
// block-out-from "screen-capture"
variable-refresh-rate true
+ default-column-display "tabbed"
default-floating-position x=100 y=200 relative-to="bottom-left"
scroll-factor 0.75
@@ -528,6 +529,27 @@ window-rule {
}
```
+#### `default-column-display`
+
+<sup>Since: next release</sup>
+
+Set the default display mode for columns created from this window.
+
+This is used any time a window goes into its own column.
+For example:
+- Opening a new window.
+- Expelling a window into its own column.
+- Moving a window from the floating layout to the tiling layout.
+
+```kdl
+// Make Evince windows open as tabbed columns.
+window-rule {
+ match app-id="^evince$"
+
+ default-column-display "tabbed"
+}
+```
+
#### `default-floating-position`
<sup>Since: 25.01</sup>