FVWM: Re: What machines

From: David S. Goldberg <dsg_at_mitre.org>
Date: 16 Jan 1998 15:06:17 -0500

FvwmM4 definitely allows you to do this, and I assume FvwmCpp does
too. Here's a very simple example (note I use {} as m4 quote chars):

addtoMenu testmenu "Fvwm FVWM_VERSION" Title
ifelse({host1},HOSTNAME,{
+ "This is host1" Nop
},{host2},HOSTNAME,{
+ "This is host2" Nop
},{
+ "This is some other host" Nop
}

FvwmM4 defines the HOSTNAME and several other things. I believe the
man page states all of them, though you might want to check the source
to be certain.

To use FvwmM4, I start fvwm2 with:

fvwm2 -cmd "FvwmM4 -m4-squote { -m4-equote } .fvwm2rc" >/tmp/fvwm-errors 2>&1

--
Dave Goldberg
Post: The Mitre Corporation\MS B305\202 Burlington Rd.\Bedford, MA 01730
Phone: 781-271-3887
Email: dsg_at_mitre.org
--
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 Fri Jan 16 1998 - 14:06:44 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST