Re: [dev] [slock] [patch] Add a simple script for X11 idle watching.

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat, 08 Dec 2012 21:48:52 +0100

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 more hideous way. It is
> > using the possibility to register a screensaver instead of having that
> > logic on your own in a more 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 less 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://git.suckless.org/xssstate/
Received on Sat Dec 08 2012 - 21:48:52 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 08 2012 - 22:48:05 CET