aboutsummaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-16 11:43:13 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-16 12:27:09 +0400
commitcbfc682f9abc9b4c02ea3c0f63a4403d037f14a4 (patch)
tree8075783f9bdae04b3327e61ed613ebd8f4862896 /wiki
parentc64d9e5223a4a19fa718dc5a0b3e74dd6ee3b0e0 (diff)
downloadniri-cbfc682f9abc9b4c02ea3c0f63a4403d037f14a4.tar.gz
niri-cbfc682f9abc9b4c02ea3c0f63a4403d037f14a4.tar.bz2
niri-cbfc682f9abc9b4c02ea3c0f63a4403d037f14a4.zip
Implement at-startup window rule
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.