Detect current virtual desktop
Maciej Bliziński
maciej at localhost.localnet
Mon Aug 21 14:08:23 EDT 2006
On Mon, 21 Aug 2006 12:52:59 +0200, Harald Karner wrote:
> Maciej Bliziński wrote:
>> How to detect current virtual desktop in GNOME? How to detect a virtual
>> desktop change?
>>
> Take a look at http://wallpapoz.sourceforge.net/
Harald, many thanks.
By the way, I have found the line of code I was interested in. It is
stunningly simple, just calls the xprop command:
os.popen('xprop -root _NET_CURRENT_DESKTOP').read()
--
http://automatthias.wordpress.com
More information about the Python-list
mailing list