Re: multiple desktops



I don't think there is a dbus method for changing workspaces (well maybe
in compiz, don't know)  You need to look at the window manager extended
hint for workspace changes.  Look up EWMH
(http://standards.freedesktop.org/wm-spec/wm-spec-1.3.html#id2494292),
you'll need to monitor the "_NET_CURRENT_DESKTOP" window manager hint
through libwnck.  (not sure if there are python bindings for that)  But
that's essentially how you need to detect if the virtual desktop has
changed and to what.  Even compiz will have to set the EWMH so it's
going to be a lot more portable if you used this.  I hope that helps.

sri

On Mon, 2008-01-14 at 13:33 -0800, Sergey Krivov wrote:
> Hello,
> 
> I wrote a simple python scripts which changes Desktop
> folder when current workspace is changed. The script
> basically simlinks the Desktop folder to different
> folders. However, each time to make the changes
> visible i have to reload Desktop by hitting Ctrl+R. Is
> there any way to invoke this from within a python
> script, i.e., via dbus?
> 
> Thanks
> 
> 
>       ____________________________________________________________________________________
> Looking for last minute shopping deals?  
> Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> -- nautilus-list mailing list nautilus-list gnome org http://mail.gnome.org/mailman/listinfo/nautilus-list
-- 
Sriram Ramkrishna <sri aracnet com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]