Greetings.
On Sat, 08 Dec 2012 21:48:52 +0100 Carlos Torres <vlaadbrain_AT_gmail.com> wrote:
> On Dec 8, 2012 10:10 AM, "Christoph Lohmann" <20h_AT_r-36.net> wrote:
> >
> > Greetings.
> >
> > On Sat, 08 Dec 2012 16:05:52 +0100 Carlos Torres <vlaadbrain_AT_gmail.com>
> wrote:
> > > What about xss, http://woozle.org/~neale/src/xss.html it doesn't poll.
> >
> > It seems to expose the same functions but in a less hideous way. It is
> > using the possibility to register a screensaver instead of having that
> > logic on your own in a less understandable way.
>
> Registration of a screensaver is the whole purpose of the mit screensaver
> extension. With it you avoid polling for idle and can manage it with xset.
> Isn't this better and consumes more cpu.
Now, with renaming xgetidle to xssstate[0] it’s possible to do all of
this in a script. It does not poll, it waits for the time requested by
the user. This may be used in other scenarios. The example script to in‐
voke slock is now in the xssstate repository.
Sincerely,
Christoph Lohmann
[0]
http://dropbox.suckmore.org/xssstate/
Received on Sat Dec 08 2012 - 21:48:52 CET