1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-05 01:33:37 +02:00
tldr/pages/common/i3-msg.md
2025-08-27 12:51:39 -07:00

422 B

i3-msg

Send messages to a running instance of i3 using IPC. See https://i3wm.org/docs/userguide.html#list_of_commands for available commands. More information: https://manned.org/i3-msg.

  • Run an i3 command:

i3-msg {{command}}

  • Print a list of workspaces in JSON:

i3-msg -t get_workspaces

  • Print a layout tree of all open windows, containers, outputs, and workspaces in JSON:

i3-msg -t get_tree