Go to index / Go to protocols

hyprland_workspace_image_capture_source_v1 ↗

image capture sources for workspaces

This protocol is a Hyprland extension for capturing workspace contents.

hyprland_workspace_image_capture_source_v1
hyprland_workspace_image_capture_source_manager_v1

Version 1

image capture source manager for workspaces

This manager can create ICC capture sources from ext-workspace handles.

hyprland_workspace_image_capture_source_manager_v1
enum capture_mode {
    windows_only = 0,
    everything = 1,
}
  • windows_only

    workspace windows only

    Include only the selected workspace's windows and their associated surfaces and decorations. The background will be transparent.

  • everything

    workspace windows and output-global desktop elements

    Include the selected workspace's windows together with wallpaper, panels, pinned windows, and other output-global surfaces, including layer-shell surfaces, associated with its output.

content included in the source image

This enum describes the allowed capture modes.

hyprland_workspace_image_capture_source_manager_v1
enum error {
    invalid_mode = 0,
}
  • invalid_mode — unknown capture mode
hyprland_workspace_image_capture_source_manager_v1
request create_source(
    source: new_id<ext_image_capture_source_v1>,
    workspace: object<ext_workspace_handle_v1>,
    mode: uint<capture_mode>,
)
  • source — new workspace image capture source
  • workspace — workspace to capture
  • mode — content to include in the source image

create an image capture source for a workspace

Create an ICC capture source from a given workspace handle.

This source does not own the workspace handle. If the workspace is removed, further attempts to share this source's contents will produce a transparent, empty image.

hyprland_workspace_image_capture_source_manager_v1
request destroy()
Destructor

    destroy the manager

    Destroy this manager. Sources and capture sessions created through this manager remain valid after its destruction.