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, --typebooleanDisplay a list of workspaces
Example:
swaymsg {{[-t|--type]}} get_workspacesExamples (5)
made by @shridhargupta | data from tldr-pages