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

2012-12-08 Thread Carlos Torres
What about xss, http://woozle.org/~neale/src/xss.html it doesn't poll. On Dec 8, 2012 2:09 AM, Christoph Lohmann 2...@r-36.net wrote: Greetings. On Sat, 08 Dec 2012 08:02:33 +0100 Comrade DOS suloevdmi...@gmail.com wrote: Did you try use xautolock? What wrong with it? Xautolock has a

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

2012-12-08 Thread Christoph Lohmann
Greetings. On Sat, 08 Dec 2012 16:05:52 +0100 Carlos Torres vlaadbr...@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

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

2012-12-08 Thread Carlos Torres
On Dec 8, 2012 10:10 AM, Christoph Lohmann 2...@r-36.net wrote: Greetings. On Sat, 08 Dec 2012 16:05:52 +0100 Carlos Torres vlaadbr...@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.

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

2012-12-08 Thread Christoph Lohmann
Greetings. On Sat, 08 Dec 2012 21:48:52 +0100 Carlos Torres vlaadbr...@gmail.com wrote: On Dec 8, 2012 10:10 AM, Christoph Lohmann 2...@r-36.net wrote: Greetings. On Sat, 08 Dec 2012 16:05:52 +0100 Carlos Torres vlaadbr...@gmail.com wrote: What about xss,

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

2012-12-08 Thread Carlos Torres
Thanks 20h, i missed the part where xssstate.c was so here is what it could be http://sprunge.us/UGaB On Sat, Dec 8, 2012 at 3:48 PM, Christoph Lohmann 2...@r-36.net wrote: Greetings. On Sat, 08 Dec 2012 21:48:52 +0100 Carlos Torres vlaadbr...@gmail.com wrote: On Dec 8, 2012 10:10 AM,

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

2012-12-08 Thread Carlos Torres
maybe this is more appealing to the inquisition http://sprunge.us/GbCf On Sat, Dec 8, 2012 at 9:20 PM, Carlos Torres vlaadbr...@gmail.com wrote: Thanks 20h, i missed the part where xssstate.c was so here is what it could be http://sprunge.us/UGaB On Sat, Dec 8, 2012 at 3:48 PM,

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

2012-12-08 Thread Christoph Lohmann
Greetings. On Sun, 09 Dec 2012 07:13:26 +0100 Carlos Torres vlaadbr...@gmail.com wrote: maybe this is more appealing to the inquisition http://sprunge.us/GbCf Sorry, I forgot to commit the xssstate.c. It's now there. Sincerely, Christoph Lohmann

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

2012-12-07 Thread Christoph Lohmann
Greetings comrades, attached is a patched for slock to add a simple script for idle watching in your current X11 sessions. It is using xgetidle[0] for getting the X11 idle time. Sincerely, Christoph Lohmann [0] http://git.suckless.org/xgetidle/ From 319d24028a01fcf81e246ee44f2640938094a941

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

2012-12-07 Thread Comrade DOS
Did you try use xautolock? What wrong with it? 2012/12/8 Christoph Lohmann 2...@r-36.net Greetings comrades, attached is a patched for slock to add a simple script for idle watching in your current X11 sessions. It is using xgetidle[0] for getting the X11 idle time. Sincerely,

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

2012-12-07 Thread Christoph Lohmann
Greetings. On Sat, 08 Dec 2012 08:02:33 +0100 Comrade DOS suloevdmi...@gmail.com wrote: Did you try use xautolock? What wrong with it? Xautolock has a sloccount of 1470 vs. 331 for xgetlock. In those 1470 there is some IPC mechanism, various heuristics to detect states like a newly started