[][src]Module xidlehook_core::modules

The module trait and some useful implementations such as combinators

Re-exports

pub use self::pulse::NotWhenAudio;
pub use self::stop_at::StopAt;
pub use self::xcb::Xcb;

Modules

pulse

Uses PulseAudio's APIs to detect whenever audio is playing, and if so it refuses to let xidlehook run the next timer command. This is used to implement --not-when-audio in the xidlehook example application.

stop_at

Stops xidlehook completely at a specific index of the chain or at the end. This is used to implement --once in the xidlehook example application.

xcb

Various X-related utilities. The Xcb object must be used regardless of whether or not you want to use NotWhenAudio - it's xidlehook's simple way to obtain the idle time. The NotWhenFullscreen module is used to implement --not-when-fullscreen in the example client.

Enums

Progress

A decision each module has to take before a timer is executed: Should it be?

Traits

Module

A generic module that controls whether timers should execute or not (outside of the normal timer)