From a193cd8446af7bca1b97349cfaeb06bae7fe06d2 Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Mon, 20 Nov 2023 19:48:47 +0100 Subject: [PATCH] Improve workspace-to-monitor-force-assignment docs https://github.com/nikitabobko/AeroSpace/issues/19#issuecomment-1819608443 --- config-examples/default-config.toml | 12 ++++++------ docs/guide.md | 15 +++++++++------ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/config-examples/default-config.toml b/config-examples/default-config.toml index 0bd46833..6dfbdfa7 100644 --- a/config-examples/default-config.toml +++ b/config-examples/default-config.toml @@ -43,12 +43,12 @@ default-root-container-orientation = 'auto' # See: https://github.com/nikitabobko/AeroSpace/blob/main/docs/guide.md#assign-workspaces-to-monitors # [workspace-to-monitor-force-assignment] -# workspace_name_1 = 1 # Sequence number of the monitor from left to right. 1-based indexing -# workspace_name_2 = 'main' # Main monitor -# workspace_name_3 = 'secondary' # Non-main monitor in case when there are only two monitors -# workspace_name_4 = 'built-in' # Case insensitive regex substring -# workspace_name_5 = '^built-in retina display$' # Case insensitive regex match -# workspace_name_6 = ['secondary', 'dell'] # You can specify multiple patterns. The first matching pattern will be used +# 1 = 1 # Sequence number of the monitor from left to right. 1-based indexing +# 2 = 'main' # Main monitor +# 3 = 'secondary' # Non-main monitor in case when there are only two monitors +# 4 = 'built-in' # Case insensitive regex substring +# 5 = '^built-in retina display$' # Case insensitive regex match +# 6 = ['secondary', 'dell'] # You can specify multiple patterns. The first matching pattern will be used # See: https://github.com/nikitabobko/AeroSpace/blob/main/docs/guide.md#on-window-detected-callback # [[on-window-detected]] diff --git a/docs/guide.md b/docs/guide.md index d732dfa2..54bb62a6 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -315,14 +315,17 @@ You can use `workspace-to-monitor-force-assignment` syntax to assign workspaces ```toml [workspace-to-monitor-force-assignment] -workspace_name_1 = 1 # Sequence number of the monitor from left to right. 1-based indexing -workspace_name_2 = 'main' # Main monitor -workspace_name_3 = 'secondary' # Non-main monitor in case when there are only two monitors -workspace_name_4 = 'built-in' # Case insensitive regex substring -workspace_name_5 = '^built-in retina display$' # Case insensitive regex match -workspace_name_6 = ['secondary', 'dell'] # You can specify multiple patterns. The first matching pattern will be used +1 = 1 # Sequence number of the monitor from left to right. 1-based indexing +2 = 'main' # Main monitor +3 = 'secondary' # Non-main monitor in case when there are only two monitors +4 = 'built-in' # Case insensitive regex substring +5 = '^built-in retina display$' # Case insensitive regex match +6 = ['secondary', 'dell'] # You can specify multiple patterns. The first matching pattern will be used ``` +- Left hand side of the assignment is the workspace name +- Right hand side of the assignment is the monitor pattern + Supported monitor patterns: - `'main'` - "Main" monitor (you can see find your "main" monitor in `System Settings -> Displays -> Use as`) - `'secondary'` - Non-main monitor in case when there are only two monitors