aboutsummaryrefslogtreecommitdiff
path: root/wiki/Configuration:-Window-Rules.md
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-16 12:12:51 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-16 01:24:34 -0700
commit4e31f7e047500cb3454359fc05865a5adf156f00 (patch)
tree25e160c53a9e3bef9dc501923fc96cb6644b8ad6 /wiki/Configuration:-Window-Rules.md
parent109d99fe82205b144e68e4571140d32d28db2597 (diff)
downloadniri-4e31f7e047500cb3454359fc05865a5adf156f00.tar.gz
niri-4e31f7e047500cb3454359fc05865a5adf156f00.tar.bz2
niri-4e31f7e047500cb3454359fc05865a5adf156f00.zip
wiki: Document named workspaces
Diffstat (limited to 'wiki/Configuration:-Window-Rules.md')
-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 f1be4680..d4b50f3b 100644
--- a/wiki/Configuration:-Window-Rules.md
+++ b/wiki/Configuration:-Window-Rules.md
@@ -37,6 +37,7 @@ window-rule {
// Properties that apply once upon window opening.
default-column-width { proportion 0.75; }
open-on-output "eDP-1"
+ open-on-workspace "chat"
open-maximized true
open-fullscreen true
@@ -234,6 +235,23 @@ window-rule {
}
```
+#### `open-on-workspace`
+
+Make the window open on a specific [named workspace](./Configuration:-Named-Workspaces.md).
+
+If such a workspace does not exist, the window will open on the currently focused workspace as usual.
+
+If the window opens on an output that is not currently focused, the window will not be automatically focused.
+
+```
+// Open Telegram on the "chat" workspace.
+window-rule {
+ match app-id=r#"^org\.telegram\.desktop$"#
+
+ open-on-workspace "chat"
+}
+```
+
#### `open-maximized`
Make the window open as a maximized column.