On Sun, Feb 24, 2008 at 07:33:46PM +0000, Michael Treibton wrote:
> On 24/02/2008, Michael Treibton <[EMAIL PROTECTED]> wrote:
> > Thank you for trying but i get odd results from this.
> >
> > is there no builtin way?
I have not run across any built in way to do this. Bascailly all it does is
move each window to the current location of the corresponding window. If the
windows are the same size you get nice results (such as terminals), if windows
are different size you could push them off the screen or get other strange
behavior.
The only way I can think of to make it work better is to have some shell script
hadel the variables and do some calculations to get everything to position
itself a bit smarter than just a force move on each of the windows. This would
require a lot more work.
>
> Also, didnt i read somewhere that to many env vars is bad?
Thomas enviormental pollution is more 'pointless' env vars are bad. As anything
they just take up resorces and why waste resorces if there is no point. such as
using $[fvwm_home] when $[FVWM_USERDIR] already exists and covers this.
The other example is to use an env var to store data that will never change, so
instead of having a SetEvn fvwm_icon $[FVWM_USERDIR]/icons
just write out the path relative to ${FVWM_USERDIR] everywhere you would of
written $[fvwm_icon] which in lots of configs was only in the ImagePath (hence
a waste of an env var)
and as you notice I just use them for tempory storage and unset them at the
end. Again if you would rather do this in a shell script, it is possible to
just have your functions call some shell script or even build a simple Module
to do the swaping.
jaimos