Barebones Idle Inhibitor With A DBus Interface (for Wayland compositors).
Originally based on Vigiland.
- Rust
- A compositor which supports the
idle-inhibit-unstable-v1protocol.
cargo build --releaseOnce launched, the application will serve the following DBus interface on the session bus at /st/contraptioni/IdleInhibitor:
<interface name="st.contraptioni.IdleInhibitor1">
<method name="EnableInhibitor">
<arg type="b" direction="out"/>
</method>
<method name="DisableInhibitor">
<arg type="b" direction="out"/>
</method>
<method name="ToggleInhibitor">
<arg type="b" direction="out"/>
</method>
<property name="IsInhibitorActive" type="b" access="read"/>
</interface>- The
EnableInhibitorandDisableInhibitormethods will returnfalseif the inhibitor was already in the requested state,trueotherwise - The
ToggleInhibitormethod will returntrueif the inhibitor was enabled,falseif it was disabled - The
IsInhibitorActivemethod will returntrueif the inhibitor is currently enabled,falseotherwise