Johan Svedberg <johan_at_svedberg.pp.se> writes:
> Hi!
>
> Basically what I would like to do is something like this:
>
> DefaultFont foo bar
>
> Where FVWM would use bar if foo is not availible on the system. Very
> similar to the way it falls back on 'fixed'.
>
> Another nice thing would be to be able to say something like this in the
> configuration file:
>
> + "XTerm" Exec exec xterm -fn $[DefaultFont] &
>
> Or is there currently some way to accomplish what I'm trying to do here?
You could PipeRead a shell that does something like this:
xlsfonts -fn $1 2>&1 | grep unmatched >/dev/null 2>&1
if [ $? = 0 ] ; then
printf "SetEnv DefaultFont $2"
else
printf "SetEnv DefaultFont $1"
fi
In the 2.5.x releases, there is the TestRc commmand.
It's possible that you could directly do this in Fvwm
using "Silent", "DefaultFont" and "TestRc" but I haven't tried it.
--
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 Sun Feb 15 2004 - 10:50:05 GMT