workspace: Cherry picked workspace_find_by_name, implemented initial workspace feature that allows users to specify an 'initial' workspace. Updated docs and comments.

This commit is contained in:
5trixs0f 2025-12-21 14:20:04 -05:00
parent eecb5d0947
commit 5f83760a34
5 changed files with 69 additions and 29 deletions

View file

@ -569,6 +569,11 @@ extending outward from the snapped edge.
is 1. The number attribute is optional. If the number attribute is
specified, names.name is not required.
*<desktops><initial>*
Define the initial starting workspace. This must match one of the names
defined in <names> or must be an index equal to or lower than <number>.
If not set, the first workspace is used.
*<desktops><popupTime>*
Define the timeout after which to hide the workspace OSD.
A setting of 0 disables the OSD. Default is 1000 ms.

View file

@ -175,6 +175,7 @@
Workspaces can be configured like this:
<desktops>
<popupTime>1000</popupTime>
<initial>Workspace 1</initial>
<names>
<name>Workspace 1</name>
<name>Workspace 2</name>