Re: FVWM: conditionals?

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Sat, 19 Oct 2002 20:14:25 -0400

Denis Perelyubskiy <denisp_at_cs.ucla.edu> 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: dane_at_mk.telcordia.com
--
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 - 19:16:48 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST