[PyKDE] idle time detection

Sebastian Kügler sebas at kde.org
Thu Nov 9 20:10:35 GMT 2006


On Thursday 09 November 2006 20:48, Andreas Pakulat wrote:
> On 09.11.06 19:51:11, Sebastian Kügler wrote:
> > Can anyone think of some clean way for a PyKDE application to detect idle
> > time?
> >
> > For the Kubuntu powermanager applet, we're currently missing that
> > feature. The usecase would be kicking in a suspend / hibernate / dimming
> > display after N seconds of no mouse or keyboard activity.
>
> You have to hook into X11 then, I think.

Yeah, that's what I read in the KScreensaver code, having zero knowledge of C 
(and C++) makes that kinds hard, though. So I was asking myself if someone 
over here already came up with a solution that I can reuse.
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You can't go around building a better world for people. Only people can build 
a better world for people. Otherwise it's just a cage. - Terry Pratchett

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20061109/eadf3487/attachment.bin


More information about the PyQt mailing list