On 21 May 2007, at 15:15, David Chisnall wrote:

> I need to
> write some code for detecting user-idle time anyway for auto-away in
> the Jabber client, so I am tempted to write a replacement for
> XScreensaver.

I just committed a small tool (Services/Private/Idle) which sends a  
notification every minute that the user is idle.  This uses the X11  
MIT_SCREEN_SAVER extension, which is found on pretty much every  
relatively modern X server (I checked FreeBSD, OS X and Solaris).

This sends a UserIdleNotification, one per minute that the user is  
idle, from EtoileIdleTimer.  The userInfo dictionary contains the  
number of minutes that the user has been idle for as an NSNumber with  
the key @"Minutes".

I'll set up a handler for these in StepChat at some point for auto- 
away.  It can also be used to activate the screensaver, once we have  
one, and for any other program that wants to do something when the  
user goes idle.

Once again, please test...

David

_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à