Quickshell


HyprlandWorkspace: QtObject

uncreatable
import Quickshell.Hyprland
  • active bool
    readonly

    If this workspace is currently active on its monitor. See also Go to focused.

  • focused bool
    readonly

    If this workspace is currently active on a monitor and that monitor is currently focused. See also Go to active.

  • id int
    readonly
    No details provided
  • lastIpcObject unknown
    readonly

    Last json returned for this workspace, as a javascript object.

    WARNING

    This is not updated unless the workspace object is fetched again from Hyprland. If you need a value that is subject to change and does not have a dedicated property, run Hyprland.refreshWorkspaces() and wait for this property to update.

  • monitor HyprlandMonitor
    readonly
    No details provided
  • name string
    readonly
    No details provided
  • activate() void

    Activate the workspace.

    NOTE

    This is equivalent to running

    HyprlandIpc.dispatch(`workspace ${workspace.id}`);