Configurationο
DisplayMonitorο
- OS:
πͺ Windows π macOS
<DisplayMonitor preventIdle="enabled" debounceTime="5s">
<Display name="DELL.*" preventIdle="always" />
<DisplayBuiltIn preventIdle="never" />
</DisplayMonitor>
Without selectors, all external displays are watched. A configuration containing
only DisplayBuiltIn selects only the built-in panel. An additional empty
<Display /> selects all external displays.
preventIdleο
- default:
enabled
Controls whether external displays contribute activity during inspection:
enabled: active unless the display is known to be powered off.always: active while connected, regardless of power state.never: watch events without contributing activity.
true is an alias for always, and false for never.
A display-level setting overrides the monitor default.
disabledο
- default:
false- OS:
π macOS
Holds selected displays disconnected in software. An external display can override this monitor-level default. On Windows, attempting to disable a display logs an unsupported-operation warning.
debounceTimeο
- β±οΈ duration:
- default:
5s
The grace period for a display to reconnect before its removal is treated as a disconnect. This avoids triggering disconnect actions for brief interruptions during mode changes or link negotiation.
onUsageο
- β‘οΈ event:
Triggered on every inspection that reports display activity. Periodic inspection
requires timeout on SystemMonitor.
onIdleο
- β‘οΈ event:
Triggered when all monitored displays are idle.
Displayο
Selects external displays. All supplied criteria must match; an empty
<Display /> matches every external display.
Connection and power events support delayed actions.
nameο
- π regex:
A regular expression matched against the displayβs reported model name.
* selects any name. This is a hardware model name, not a user-defined
label for the rule.
vendorο
The manufacturer code, for example DEL. Matched case-insensitively.
productο
The numeric product code.
serialο
The reported serial string or numeric serial written in decimal. Serial strings are matched case-insensitively.
resolutionο
The exact native resolution, for example 3840x2160. The current desktop
resolution does not affect this criterion.
minWidthο
The minimum native width in pixels.
minHeightο
The minimum native height in pixels.
preventIdleο
- default:
inherited from DisplayMonitor
Controls whether this display contributes activity. Accepts the same values as the monitor-level setting.
disabledο
- default:
inherited from DisplayMonitor
- OS:
π macOS
Holds this display disconnected in software while the configuration applies.
onConnectο
- β‘οΈ event:
Triggered when the display connects.
onDisconnectο
- β‘οΈ event:
Triggered when the display disconnects after the configured grace period.
onPowerOnο
- β‘οΈ event:
Triggered when the platform reports that the display is powered on.
onPowerOffο
- β‘οΈ event:
Triggered when the platform reports that the display is powered off.
DisplayBuiltInο
Selects the built-in panel. There are no name or hardware-selection attributes. Lid events support delayed actions; the opposite event cancels a pending action.
preventIdleο
- default:
never
Controls whether the built-in panel contributes activity. Accepts the same
values as DisplayMonitor, but does not inherit its default.
disabledο
- default:
false- OS:
π macOS
Holds the built-in panel disconnected in software. Does not inherit the monitor-level setting.
onLidOpenο
- β‘οΈ event:
Triggered when the laptop lid opens.
onLidCloseο
- β‘οΈ event:
Triggered when the laptop lid closes.