Hi Folks,
I'm looking for a bit of Gnome expertise ...
Suppose I have a Gnome desktop with a number of "workspaces", say 10.
What I want to do is "transplant" a window from one workspace to another under software control (e.g. a shell script).
Gnome certainly has an internal mechanism for this, since if you click on the little square button at the top left of a window, you get a menu which includes options to "Move to Workspace n".
Is there a way to send a code or signal to a window which would cause this to happen?
A related question: can one program the opening of a window so that it is initially "planted" in a chosen workspace?
With thanks, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 21-Jul-07 Time: 20:34:21 ------------------------------ XFMail ------------------------------
Hi Folks,
I'm looking for a bit of Gnome expertise ...
Suppose I have a Gnome desktop with a number of "workspaces", say 10.
What I want to do is "transplant" a window from one workspace to another under software control (e.g. a shell script).
Gnome certainly has an internal mechanism for this, since if you click on the little square button at the top left of a window, you get a menu which includes options to "Move to Workspace n".
Maybe have a look at the gnome pager panel applet to see how it does it ?
Peter
On Sat, Jul 21, 2007 at 08:34:43PM +0100, Ted Harding wrote:
Hi Folks,
I'm looking for a bit of Gnome expertise ...
Suppose I have a Gnome desktop with a number of "workspaces", say 10.
What I want to do is "transplant" a window from one workspace to another under software control (e.g. a shell script).
Gnome certainly has an internal mechanism for this, since if you click on the little square button at the top left of a window, you get a menu which includes options to "Move to Workspace n".
Is there a way to send a code or signal to a window which would cause this to happen?
A related question: can one program the opening of a window so that it is initially "planted" in a chosen workspace?
If my memory hasn't gone completely screwy (very possible!) then I think the workspace is actually a window property on the window, so using xlib and some C you could set that property, then tell the window to redraw and it (should) disappear as the window manager goes "meh, that's not supposed to be there!".
MJR might remember more than me, though - it's been a while since we were working on jewel - might be getting close to a revival though - if the ion3 maintainer doesn't stop being a moron then I'll go back to writing window manglers with mimimum requirements... (though, I have a whole set of needed features these days that I didn't used to have!)
Hope that, err, well - it probably won't help, but it might point you in the right direction - I think you'd be looking at the EWMH specs and a bit of C.
Cheers,
On Sat, Jul 21, 2007 at 08:34:43PM +0100, Ted Harding wrote:
I'm looking for a bit of Gnome expertise ...
Suppose I have a Gnome desktop with a number of "workspaces", say 10.
What I want to do is "transplant" a window from one workspace to another under software control (e.g. a shell script).
Gnome certainly has an internal mechanism for this, since if you click on the little square button at the top left of a window, you get a menu which includes options to "Move to Workspace n".
Is there a way to send a code or signal to a window which would cause this to happen?
A related question: can one program the opening of a window so that it is initially "planted" in a chosen workspace?
I think you might want to look at "wmctrl" and "devilspie" programs (both in Debian under those package names).
J.