snap_window
Snap a window into a numbered zone on its monitor. Provide the app name and zone number (as shown in Plonk's drag overlay) to place the window in that preset zone.
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 |