Configuration
Workspaces
Pin workspaces to specific monitors with sweets.workspace.
sweets.workspace(number, { ... }) pins a workspace to a monitor. Rules are
optional. An unpinned workspace follows the current output.
sweets.workspace(1, { monitor = "DP-4" })
sweets.workspace(2, { monitor = "DP-2" })
sweets.workspace(3, { monitor = "DP-1" })Options
| Key | Type | Default | Description |
|---|---|---|---|
monitor | string | current | Output name that owns the workspace |
number is 1–10. When the pinned monitor is connected, switching to that
workspace selects that monitor. Moving a window there moves it to that monitor's
copy of the workspace.
If the monitor is disconnected, Sweets falls back to the current output so the
workspace stays reachable. A pin works the same in both workspace_mode values.
Limiting the number of workspaces
Sweets always has ten workspaces internally. To use fewer, set
workspace_count in
sweets.general. Workspaces above the limit become unreachable and are hidden
from status bars. Pinning one above the limit has no effect.