On Thu, 13 Nov 1997, Drew Lebauer wrote:
> When FvwmM4 or FvwmCpp are used, do they process the entire .fvwm2rc
> file, or can they be used to process only a function, such as
> InitFunction? Here's what I want to do. My home directory is
> cross-mounted to several boxes, on of which is my "home" box. When I log
> into another box, its for some specialized purposes. I'd like to have a
> "regular" InitFunction for when I log into my home box, and be able to
> have different, specialized InitFunctions based on my hostname.
Drew,
You can definitely do this. Say you have four fvwm2 setup files:
.fvwm2rc-common, .fvwm2rc-init-home, .fvwm2rc-init-work, and .fvwm2rc-M4.
You would start fvwm2 like this in your .xinitrc (or maybe .Xclients or
.xsession):
exec fvwm2 -cmd "FvwmM4 ~/.fvwm2rc-M4 > ~/.fvwm2-errors 2>&1
Now here's what .fvwm2rc-M4 would look something like, if your home
machine's hostname were "goocher":
changequote(<<, >>)
define(<<HOME>>, patsubst(HOME, <<`>>, <<>>))
define(<<HOME>>, patsubst(HOME, <<'>>, <<>>))
include(HOME/.fvwm2rc-common)
define(<<INITFILE>>, ifelse(esyscmd(hostname), <<goocher>>,
HOME/.fvwm2rc-init-home, HOME/.fvwm2rc-init-work))
include(INITFILE)
Naturally, .fvwm2rc-init-home and .fvwm2rc-init-work would just look
something like
AddToFunc InitFunction
+ "I" Module FvwmButtons
+ "I" Module FvwmAuto 750
+ "I" Exec nxterm
Try that. If you have problems, look in ~/.fvwm2-errors, and use the
emacs info documentation on M4 -- I don't know if my M4 code is quite
right.
G.F.
--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
Greg Fall
gmfall_at_engin.umich.edu
http://www-personal.engin.umich.edu/~gmfall
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Nov 13 1997 - 10:39:20 GMT