[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] idle time detection
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2006-11-09 21:02:10
Message-ID: 20061109210210.GB17483 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]
On 09.11.06 21:50:51, Torsten Marek wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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
> >>> 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.
> >
> > 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.
Well, I can see a X11 interface module here on my Debian machine:
python-xlib, so I guess the same is true for kubuntu. Which means
Sebastian could rewrite this small class in plain Python.
Andreas
--
You'll never see all the places, or read all the books, but fortunately,
they're not all recommended.
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic