[PyQt] OT: System idle time
Hans-Peter Jansen
hpj at urpla.net
Fri Sep 17 13:25:03 BST 2010
On Friday 17 September 2010, 12:41:49 Hugo Léveillé wrote:
> Hey
>
> A little OT here but I am sure one of you filks got the answer. Under
> linux, what is the python command to get the system idle time. By idle
> time, I mean mouse move or keyboard pressed. I got it for windows and
> OSX but not Linux
Only a few distributions ship a package called xidle, but for a general
solution, you might need to call into the Xlib yourself with ctypes - not
that easy but doable.
man 3 XScreenSaver
Pete
More information about the PyQt
mailing list