[PyKDE] idle time detection
shlomme at gmx.net
Thu Nov 9 20:50:51 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Matt Newell schrieb:
> On Thursday 09 November 2006 11: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
>>> 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.
> You need to use the XScreenSaver extension. Attached is a c++ class used by
> older psi that i use in one of my projects. I'm not sure but you can
> probably achieve the same thing with pure python.
just a heads up, you might want to look at ctypes if you do stuff like that, no
need to write a C extension yourself. Remember, ctypes is stdlib in 2.5.
Torsten Marek <shlomme at gmx.net>
ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the PyQt