swaymsg
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 information: https://github.com/swaywm/sway/blob/master/swaymsg/swaymsg.1.scd.
- Run a Sway command:
swaymsg
- Display a list of workspaces:
swaymsg get_workspaces
- Display a list of input devices:
swaymsg get_inputs
- Display a list of output devices:
swaymsg get_outputs
- Display a layout tree of all open windows, containers, outputs, and workspaces:
swaymsg get_tree
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
