Re: FVWM: Loading a fvwm2rc.$HOST

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 5 Jan 2003 05:48:52 +0000

On 04 Jan 2003 22:54:31 +0100, Johan Svedberg wrote:
>
> I'm wondering if there is a way to accomplish this from my fvwm2rc or do
> I have to use some kind of shellwrapper like:
>
> export HOST=`uname -n | cut -d . -f 1`
>
> if [ -e ~/lib/fvwm2rc.\$HOST/fvwm2rc.$HOST ]; then
> . ~/lib/fvwm2rc.\$HOST/fvwm2rc.$HOST
> fi
>
> I want to add diffrent configurations to my default one depending on
> which machine I'm on. I'm aware of that I can use the source command,
> but I would like to test if there actually is a file to be sourced
> aswell.

If you have different files with FVWM commands in some place, say ~/.fvwm,
you may include one or another such file from your main fvwm2rc using:

  Read additional-config-for-$[HOST] Quiet

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 Jan 04 2003 - 23:50:11 GMT

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