Denis Perelyubskiy <[EMAIL PROTECTED]> writes:
> Hello,
> 
> 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
> 
> In my fvwm2rc,I have things like ModulePath, which change
> depending on which version I am running.
> 
> The only way I am aware of is to use $[FVWM_VERSION] and set
> that version sometime before fvwm starts.
> 
> Also, I wanted to keep various parts of my config file in
> different files. Is it possible to say something like :
> 
> source .fvwm.menues (or something)
> 
> and have that file included?
> 
> Also, is it possible to have conditional expressions in
> fvwmrc, where i define something or other based on some
> setting?

The fvwm variable $v contains the version.

Using PipeRead, you can do any kind of conditional statement.

For example, if you did:

PipeRead "shellcommand $v"

then shell command would be passed the Fvwm version string.
For the 2.5.4 release I'm running, that contains:

fvwm 2.5.4 (from cvs) compiled on Oct 18 2002 at 07:12:03

Anything printed by the shell command would be treated as
an Fvwm command.

-- 
Dan Espen                           E-mail: [EMAIL PROTECTED]
--
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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to