Skip to content

aerospace-edge workspace

Focus the specified workspace

Synopsis

aerospace-edge workspace [-h|--help] [--auto-back-and-forth] [--fail-if-noop] [--] <workspace-name>
aerospace-edge workspace [-h|--help] [--wrap-around] [--stdin|--no-stdin] (next|prev)

Description

1. syntax

Focus the specified workspace

2. (next|prev) syntax

Focuses next or previous workspace in the list.

  • If --stdin is specified, then the list is taken from stdin

  • Otherwise, the list is defined as all workspaces (even empty ones) on focused monitor in alphabetical order

Options

-h, --help

Print help

--wrap-around

Make it possible to jump between first and last workspaces using (next|prev)

--auto-back-and-forth

Automatic back-and-forth when switching to already focused workspace. Incompatible with --fail-if-noop

--fail-if-noop

Exit with non-zero exit code if switch to the already focused workspace. Incompatible with --auto-back-and-forth

--stdin

Read the list of workspaces from stdin. Incompatible with --no-stdin

--no-stdin

Ignore the list of workspaces from stdin, even if provided. Incompatible with --stdin

Arguments

<workspace-name>

Workspace name to focus.

Examples

  • Go to the next non empty workspace on the focused monitor:
    aerospace-edge list-workspaces --monitor focused --empty no | aerospace-edge workspace --stdin next