pir_define_window
Define a named window region that tracks a moving window by looking up its geometry before each capture, with window-local masks for targeted monitoring.
Instructions
Watch a window rather than a fixed rectangle: geometry is looked up from the window id before every capture, so the region follows the window when it moves. A resize counts as maximal change. Masks are window-local. The id is whatever your window-geometry command understands (a Hyprland address like 0x5f3a..., an X11 window id).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| masks | No | ||
| window | Yes |