Skip to main content

Commands and IPC

Grid Screen has no separate command-line interface. The Svelte frontend calls Tauri commands through src/lib/commands.ts.

CommandPurpose
bootstrapLoad settings and layouts, enumerate screens and eligible windows, and return system status.
refresh_windowsRe-enumerate and filter windows for the current workspace.
arrange_windowsValidate a layout, screen, and assignments, then ask the adapter to move each window.
save_layoutValidate and persist a layout.
delete_layoutRemove a layout by id.
get_settingsRead persisted settings.
update_settingsPersist settings from the Settings view.
save_defaultsPersist the current default gap and margin.
get_diagnosticsReturn a text report of version, session, window manager, EWMH, XRandR, workspace, and screens.

arrange_windows returns an ArrangeResult with overall success and a per-window status. It can fail before movement for an unknown layout, unknown screen, invalid geometry, a stale window, or an ineligible window.