Python/X11: find out if user switches virtual desktops

Posted by Philip on Stack Overflow See other posts from Stack Overflow or by Philip
Published on 2010-04-14T23:32:35Z Indexed on 2010/04/14 23:33 UTC
Read the original article Hit count: 443

Filed under:
|
|
|

Hello everyone,

I'm looking for a way to determine if the user switches virtual desktops under X11.

I'm using Python with X11 libraries and PyGTK. I found some working examples in C, but I lack the expertise to translate them into Python, and I read the source code of several X11 pager applications (fbpanel, pypanel), but I can't seem to find what I'm looking for.

Do I have to register for a signal? Using X11 or GTK? Do I have to busy-wait?

I'm completely new to both X11 and GTK, so any hints/help would be greatly appreciated.

Greets, Philip

PS: My current efforts can be found here.

© Stack Overflow or respective owner

Related posts about gtk

Related posts about pygtk