Skip to main content

parse_idle_inhibitor

Function parse_idle_inhibitor 

Source
pub(crate) fn parse_idle_inhibitor(text: &str) -> bool
Expand description

Linux systemd-inhibit --list: true if any inhibitor’s WHAT column (colon-separated types) includes idle. System-managed inhibitors like handle-lid-switch / sleep don’t carry the idle component.