Toggle i3 Window State
toggle_window_stateChange the floating, fullscreen, or sticky state of the focused window. Toggle or force enable/disable, with optional per-output or global fullscreen scope.
Instructions
Enable, disable, or toggle one boolean window state — floating, fullscreen, or sticky — on the focused window. Reversible. Omit enable to toggle, or set it true/false to force. fullscreen_scope picks per-output ('normal') vs across-all ('global'). For layout/border changes use set_layout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Which boolean window state to change. | |
| enable | No | true=enable, false=disable, omitted=toggle. | |
| fullscreen_scope | No | Fullscreen scope when state='fullscreen'. Default 'normal'. | normal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | First error message across the payload, or null on full success. | |
| success | Yes | True only if every command in the payload succeeded. | |
| outcomes | No | Per-command outcomes, in payload order. |