Re: FVWM: more virtual desktops

From: David Vilar <vilar_at_i6.informatik.rwth-aachen.de>
Date: Sun, 13 Feb 2005 20:54:37 +0100

On Sat, Feb 12, 2005 at 01:29:58PM -0500, Jonathan Geisler wrote:
> Is there a scriptable way to add more virtual desktops to my running
> configuration. I know I can change the value and restart the window
> manager, but is there a function I can call and then assign it to a
> keystroke so that if I discover I would like a new desktop, I can just
> add a new desktop and change to it without all the extra hassle
> mentioned above?

I have something similar in my config. First you have to note that
(as far as I understand it) fvwm creates the new desktops
dinamically, so you can always use, say, "GotoDesk 43572" and if it
wasn't active before, it will become (see the GotoDesk in the man
page for more info). I have the "restriction" that my desk are
consecutive beginning at number 0 and so I can store in an
environment variable the highest used desk number. I have defined a
function NewDesk that increases this variable, warps to this desk,
creates a form asking for a desk name and restarts FvwmPager in
order to show it. This has some drawbacks, e.g. to remain consistent
you can only delete the last desktop, but I also have a function to
move all the windows from one desk to another so this becomes only a
minor problem.

You can find my config here:
http://www-i6.informatik.rwth-aachen.de/~vilar/fvwm.html

Hope that it helps. Greetings,

David

-- 
David Vilar Torres			RWTH Aachen
Tel: (+49) 241 80 21611			Lehrstuhl f. Informatik VI
Fax: (+49) 241 80 22219			Ahornstr. 55
vilar_at_informatik.rwth-aachen.de		D-52056 Aachen (Germany)
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Feb 13 2005 - 13:55:22 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST