> I am trying to make my .fvwm2 config file work for both
> 2.5.x and 2.4x
>
> In addition, depending on which machine I log in from, I
> want to run 2.5.x or 2.4.x
The way I do this at uni is by having one configuration for each machine:
yallara [11:26am] [~] ls -la .fvwm2rc*
-rw------- 1 izzo students 7575 Oct 8 10:56 .fvwm2rc-numbat
-rw------- 1 izzo students 7109 Oct 8 10:57 .fvwm2rc-yallara
Then my .xsession looks like this:
#!/bin/sh
# use correct config file depending on host
FOO=`hostname`
CONFIG=""
if [ $FOO = "yallara.cs.rmit.edu.au" ]; then
CONFIG="$HOME/.fvwm2rc-yallara"
elif [ $FOO = "numbat.cs.rmit.edu.au" ]; then
CONFIG="$HOME/.fvwm2rc-numbat"
fi
# start the window manager
exec fvwm2 -f $CONFIG
# eof
But you could of course use one of the other methods previously described;
they're probably more elegant. :-)
sam
--
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 Sat Oct 19 2002 - 20:29:41 BST