aboutsummaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
Diffstat (limited to 'wiki')
-rw-r--r--wiki/Configuration:-Window-Rules.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/wiki/Configuration:-Window-Rules.md b/wiki/Configuration:-Window-Rules.md
index d4b50f3b..a86a2cb8 100644
--- a/wiki/Configuration:-Window-Rules.md
+++ b/wiki/Configuration:-Window-Rules.md
@@ -33,6 +33,7 @@ window-rule {
match is-active=true
match is-focused=false
match is-active-in-column=true
+ match at-startup=true
// Properties that apply once upon window opening.
default-column-width { proportion 0.75; }
@@ -192,6 +193,23 @@ window-rule {
}
```
+#### `at-startup`
+
+<sup>Since: 0.1.6</sup>
+
+Can be `true` or `false`.
+Matches during the first 60 seconds after starting niri.
+
+This is useful for properties like `open-on-output` which you may want to apply only right after starting niri.
+
+```
+// Open windows on the HDMI-A-1 monitor at niri startup, but not afterwards.
+window-rule {
+ match at-startup=true
+ open-on-output "HDMI-A-1"
+}
+```
+
### Window Opening Properties
These properties apply once, when a window first opens.