Quickshell


I3Workspace: QtObject

uncreatable
import Quickshell.I3
I3/Sway workspaces
  • 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

    The ID of this workspace, it is unique for i3/Sway launch

  • lastIpcObject unknown
    readonly

    Last JSON returned for this workspace, as a JavaScript object.

    This updates every time we receive a workspace event from i3/Sway

  • monitor I3Monitor
    readonly

    The monitor this workspace is being displayed on

  • name string
    readonly

    The name of this workspace

  • num int
    readonly

    Deprecated: use Go to number

  • number int
    readonly

    The number of this workspace

  • urgent bool
    readonly

    If a window in this workspace has an urgent notification

  • activate() void

    Activate the workspace.

    NOTE

    This is equivalent to running

    I3.dispatch(`workspace number ${workspace.number}`);