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 with a retry loop.

Under startup environments, the window manager IPC socket may not be immediately ready. This function polls the detection mechanism for up to 3 seconds before failing.