Re: FVWM: Function to set dynamic menu title

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Wed, 18 Feb 2004 16:30:41 +0100

On Wed, Feb 18, 2004 at 03:42:13PM +0100, Rainer Koehler wrote:
> Ryan Daly writes:
>
> > Rainer Koehler said:
> >> This is such a big mess that I can't keep my mouth shut...
> >> No offense, but I think someone should explain to you what you're
> >> actually doing here.
>
> > Sorry for not posting my completed function. That function was obviously
> > just for debugging purposes so I could see that things were working.
>
> No problem, and thanks for posting the final (?) function. There are
> other users here who should see it, and not just some intermediate
> version.
>
> > My completed function is as follows:
>
> > AddToFunc "CreateStartMenu"
> > + "I" DestroyMenu StartMenu
> > + "I" PipeRead 'echo "AddToMenu StartMenu `/bin/hostname -s` Title"'
> > + "I" PipeRead '/bin/cat $HOME/.fvwm/.startmenu'
>
> Ok, so why don't you use $HOST instead of calling hostname, and why
> don't you use Read instead of PipeRead to read .startmenu? There
> might very well be good reasons to do it your way, I just want to
> know...

Come to think of it, this is much simpler:

  + I "$[HOSTNAME]" Title

Ciao

Dominik ^_^ ^_^
--
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 Wed Feb 18 2004 - 09:32:58 GMT

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