list and control workspaces

This protocol extends `ext-workspace-v1` with addtional requests and events.

The caller should call `get_cosmic_workspace` whenever a new ext workspace is created.

get cosmic workspace extension object

Request a `zcosmic_workspace_handle_v2` extension object for an existing `ext_workspace_handle_v1`.

If a `zcosmic_workspace_handle_v2` already exists for the `ext_workspace_handle_v1`, this will raise a `workspace_exists` protocol error.

destroy()
destroy the zcosmic_workspace_manager_v2 object

This request should be called either when the client will no longer use the `zcosmic_workspace_manager_v2`.

error { workspace_exists } 
Argument
Value
Description
workspace_exists0
zcosmic_workspace_handle_v2 already exists for ext_workspace_handle_v1

a workspace handing a group of surfaces

A zcosmic_workspace_handle_v2 object represents a a workspace that handles a group of surfaces.

Each workspace has a name, conveyed to the client with the name event; a list of states, conveyed to the client with the state event; and optionally a set of coordinates, conveyed to the client with the coordinates event. The client may request that the compositor activate or deactivate the workspace.

Each workspace can belong to only a single workspace group. Depepending on the compositor policy, there might be workspaces with the same name in different workspace groups, but these workspaces are still separate (e.g. one of them might be active while the other is not).

destroy()
destroy the zcosmic_workspace_handle_v1 object

This request should be called either when the client will no longer use the `zcosmic_workspace_handle_v1`.

rename(name: string)
Argument
Type
Description
namestring
new name of the workspace
rename this workspace

Request that this workspace is renamed.

There is no guarantee the workspace will actually be renamed.

Argument
Type
Description
stateuint<zcosmic_workspace_handle_v2.tiling_state>
the new tiling state of the workspace
change the tiling state of this workspace

Request that this workspace's tiling state is changed.

There is no guarantee the workspace will actually change it's tiling state.

move_before(other_workspace: object<ext_workspace_handle_v1>, axis: uint)
Argument
Type
Description
other_workspaceobject<ext_workspace_handle_v1>
axisuint
move before a different workspace

Move a workspace to be before another workspace along a given axis.

`other_workspace` may be on the same workspace group, or on a different group. If it's a different set, the workspace will also be moved to that group.

`axis` should be a valid index in the coordinates on the workspace group `other_workspace` is on. The workspace will be positioned on the target group to have a coordinate with this component less than the value of the component for `other_workspace`. The exact coordinate values, or how other workspaces are moved to accommodate the workspace, is unspecified.

The request will be ignored if `axis` is invalid or the compositor is otherwise unable to move the workspace.

There is no guarantee the workspace will actually be moved.

move_after(other_workspace: object<ext_workspace_handle_v1>, axis: uint)
Argument
Type
Description
other_workspaceobject<ext_workspace_handle_v1>
axisuint
move after a different workspace

Move a workspace to be after another workspace along a given axis.

See `move_before`.

pin()
pin the workspace

Request that this workspace be pinned.

There is no guarantee the workspace will be actually pinned.

unpin()
pin the workspace

Request that this workspace be unpinned.

There is no guarantee the workspace will be actually unpinned.

compositor capabilities

This event advertises the capabilities supported by the compositor. If a capability isn't supported, clients should hide or disable the UI elements that expose this functionality. For instance, if the compositor doesn't advertise support for removing workspaces, a button triggering the remove request should not be displayed.

The compositor will ignore requests it doesn't support. For instance, a compositor which doesn't advertise support for remove will ignore remove requests.

Compositors must send this event once after creation of a `zcosmic_workspace_handle_v2`. When the capabilities change, compositors must send this event again.

indicates if tiling behavior is enabled for this workspace

This event is emitted immediately after the zcosmic_workspace_handle_v2 is created and each time the workspace tiling state changes, either because of a compositor action or because of a request in this protocol.

Argument
Type
Description
stateuint<zcosmic_workspace_handle_v2.state>
the state of the workspace changed

This event is emitted immediately after the zcosmic_workspace_handle_v2 is created and each time the workspace state changes, either because of a compositor action or because of a request in this protocol.

workspace_capabilities { rename, set_tiling_state, pin, move } 
Argument
Value
Description
rename1
rename request is available
set_tiling_state2
set_tiling_state request is available
pinsince 23
pin and unpin requests are available
movesince 24
move_before and move_after requests are available
tiling_state { floating_only, tiling_enabled } 
Argument
Value
Description
floating_only0
The workspace has no active tiling properties
tiling_enabled1
Tiling behavior is enabled for the workspace
types of tiling state a workspace may have
state { pinned } 
Argument
Value
Description
pinned1
the workspace is pinned
state of the workspace, extending the ext workspace state

Compositor Support

Mutter
Mutter
48.0
KWin
KWin
6.4
Sway
Sway
1.11
COSMIC
COSMIC
...
Hyprland
Hyprland
0.48
niri
25.02
Weston
Weston
14
Labwc
Labwc
0.9.0
Cage
Cage
0.2.0
Wayfire
Wayfire
0.9.0
GameScope
GameScope
3.15.14
Jay
1.11.0
Mir
Mir
2.19
Treeland
Treeland
0.5.20
Louvre
Louvre
2.14.1
zcosmic_workspace_manager_v2
x
x
x
2
x
x
x
x
x
x
x
x
x
x
x

Copyright © 2025 System76

Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the copyright holders not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. The copyright holders make no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.