snap_window
Snaps a specified window into a numbered snap zone on its monitor, using the zone numbers shown while dragging. Specify app and zone to organize windows instantly.
Instructions
Drop one window into a numbered zone of the snap-zone set assigned to that monitor. The numbers are the ones Plonk draws on the zones while a window is dragged, so 'the middle zone' of a three-zone set is 2. Zone sets and their per-monitor assignment are in get_state; use apply_layout instead when the user describes a size rather than a zone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name to match, e.g. 'Visual Studio Code' | |
| zone | Yes | 1-based zone number, as shown on the drag overlay | |
| title | No | Only windows whose title contains this substring | |
| screen | No | Monitor index; defaults to the one the window is on |