Skip to main content

detect_monitors

Function detect_monitors 

Source
pub fn detect_monitors(config: &Config) -> WallSwitchResult<Vec<String>>
Expand description

Detects active outputs (monitors) using a robust fallback chain. Returns a WallSwitchResult wrapping a Vector of monitor property strings.

If all detection methods fail, it returns a formal WallSwitchError instead of relying on hardcoded defaults.