pir_define_region
Define a named on-screen region to monitor for changes, with optional mask rectangles to ignore static areas like clocks or spinners.
Instructions
Name a rectangle of the screen to watch. Coordinates are in the global layout the capture tool uses (on a multi-monitor wlroots layout an output left of the primary has negative x). Masks are rects inside the region, in region-local pixels, that are ignored: put a clock or spinner there. Redefining a name replaces it and forgets its last sample.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | Yes | height, pixels | |
| w | Yes | width, pixels | |
| x | Yes | left edge, pixels | |
| y | Yes | top edge, pixels | |
| name | Yes | ||
| masks | No |