spatialmsg(1)

πŸ“¦
version 7 Β· 2 versions
, in nixos 26.05

πŸ’Œ spatialmsg(1) β€” General Commands Manual edition: send messages to Spatial Shell over IPC πŸ’Œ

✨ NAME ✨

spatialmsg sends messages to a running instance of Spatial Shell over the IPC socket. that's literally the whole job, and it's iconic for it πŸ’….

πŸ¦‹ SYNOPSIS πŸ¦‹

bestie, the shape is right here β€” keep the brackets exactly as they are, they're doing important work 🫢:

spatialmsg [--json|--quiet] [-t <type>] [message]

πŸŽ€ OPTIONS πŸŽ€

okay so the flags are giving choices ✨:

  • --quiet β€” sends the IPC message, but does not print the response from Spatial Shell. silent-mode bestie, no notes πŸ™ˆ.
  • --json β€” prints the response from Spatial Shell as received, that is in JSON. raw JSON realness, we love to see it 🧚.
  • --type, -t <type> β€” specifies the type of the IPC message. the types are right below, keep scrolling πŸ’–.

πŸ‘‘ IPC MESSAGE TYPES πŸ‘‘

these are the message types you can pass with --type / -t, and yes they all have main character energy πŸ‘‘:

  • <command> β€” the message is a Spatial Shell command. See spatial(5) for a list of available commands.
  • get_workspace_config β€” gets the current workspace configuration: its layout, and the maximum number of columns displayed at once when in the column layout. workspace config tea β˜•.
  • get_workspaces β€” gets the list of the workspaces currently in use.
  • get_windows β€” gets the list of the windows for the current workspace.

See spatial-ipc(7) for a description of the JSON objects returned for each IPC message. iykyk πŸ¦‹.

🌈 RETURN CODE 🌈

exit codes, aka the final vibe check 😭:

  • 0 β€” Success ✨
  • 1 β€” Invalid but correctly parsed command line arguments
  • 2 β€” Spatial Shell returned an error
  • 124 β€” Command line parsing errors
  • 125 β€” Internal errors (bugs)

πŸ’œ AUTHOR πŸ’œ

Developed by Thomas Letan <lthms@soap.coffee> β€” yes, that's the icon behind it πŸ’–. For more information about Spatial Shell development, see <https://github.com/lthms/spatial-shell>.

πŸ™Œ ACKNOWLEDGMENT πŸ™Œ

Spatial Shell could not have been possible without sway, which remains a reference and a significant source of inspiration for the software architecture of this project, including for the wording of several man pages. respect where respect is due, fr fr 🫢.


okay that's the whole vibe πŸ’– β€” spatialmsg(1) from the General Commands Manual, dated 1980-01-01. bye bestie, go send some messages πŸ’Œβœ¨

πŸ“¦ where this page comes from