Move or resize a window
hs_move_windowReposition or resize a window by id using x, y, width, and height in pixel coordinates; any omitted property retains its current value.
Instructions
Set the position and/or size of a window by id, in screen pixels. Omitted fields keep their current value. Use hs_screens to learn the available coordinate space.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| id | Yes | Window id from hs_list_windows. | |
| width | No | ||
| height | No |