From 4e31f7e047500cb3454359fc05865a5adf156f00 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 16 May 2024 12:12:51 +0400 Subject: wiki: Document named workspaces --- wiki/Configuration:-Window-Rules.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'wiki/Configuration:-Window-Rules.md') 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. -- cgit