commands.sh

swaymsg

all

Send messages to a running instance of Sway using IPC. See <https://github.com/swaywm/sway/blob/master/sway/sway.5.scd> for available commands.

More info →

Options (1)

-t, --typeboolean

Display a list of workspaces

Example: swaymsg {{[-t|--type]}} get_workspaces

Examples (5)

Run a Sway command

Display a list of workspaces

swaymsg [-t|--type] get_workspaces

Display a list of input devices

swaymsg [-t|--type] get_inputs

Display a list of output devices

swaymsg [-t|--type] get_outputs

Display a layout tree of all open windows, containers, outputs, and workspaces

swaymsg [-t|--type] get_tree
made by @shridhargupta | data from tldr-pages