5 unstable releases

0.3.0 Mar 4, 2021
0.2.0 Jun 1, 2020
0.1.2 May 31, 2020
0.1.1 Mar 11, 2020
0.1.0 Oct 13, 2019

#4 in #x

Download history 19/week @ 2024-02-25 6/week @ 2024-03-03 8/week @ 2024-03-10 1/week @ 2024-03-17 83/week @ 2024-03-31

93 downloads per month
Used in xidlehook

MIT license

45KB
868 lines

xidlehook (core)

This is the core of xidlehook, abstracted away as a library. The idea is to keep the core reusable between different front-ends.

See GitHub issue #27 for an example why this split was made. Splitting some of the work out in a library is also good for testing :)

In case this wasn't confusing enough for readers, there's also an example named "xidlehook" which is basically a stripped-down version of xidlehook-daemon. The reason for this is just to give a starting point to people making their own clients that do not have to have a full-blown async event loop like the current tool itself.

Preferrably, the feature creepiness of this crate should be turned all the way down. I am a big fan of the Unix philosophy of keeping things simple by design. The exception here are some basic modules that most people will want.

In short, use xidlehook-daemon and not this.


lib.rs:

Instead of implementing your extension as something that communicates with xidlehook, what about implementing your extension as something that is xidlehook?

This library lets you create your own xidlehook front-end using a powerful timer and module system.

Dependencies

~5–17MB
~208K SLoC