Re: FVWM: conditionals?

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 20 Oct 2002 00:24:51 +0000

On 19 Oct 2002 16:52:29 -0700, Denis Perelyubskiy wrote:
>
> 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.

Please remove ModulePath line completely. Don't comment it, just remove.
ModulePath is needed in neither 2.5.x nor 2.4.x (nor 2.2.x).

> 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?

  Read menus # this will include in ~/.fvwm/menus

  PipeRead "echo Read .fvwm2rc-`fvwm-config --version | cut -c1-3`"

The second includes either .fvwm2rc-2.4 or .fvwm2rc-2.5 depending
on version.

> Also, is it possible to have conditional expressions in
> fvwmrc, where i define something or other based on some
> setting?

Mostly using this PipeRead technique.

Regards,
Mikhael.
--
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:26:04 BST

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