CmdID

CmdID / Commands

swaymsg

Send messages to a running instance of Sway using IPC. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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.

Run a Sway command

swaymsg commandIdentify

Display a list of workspaces

swaymsg --type get_workspacesIdentify

Display a list of input devices

swaymsg --type get_inputsIdentify

Display a list of output devices

swaymsg --type get_outputsIdentify

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

swaymsg --type get_treeIdentify