On 26 Mar 2004 22:49:39 +1100, Scott Smedley wrote:
> 
> > AddToFunc CondAdd I Test (f $0) AddToMenu $1 %$2%$3 Exec $0
> > 
> > Then you just need to 
> > 
> > CondAdd /usr/bin/mozilla Programs mozilla.xpm Mozilla
> > CondAdd /usr/bin/netscape Programs netscape.xpm Netscape
> > CondAdd /usr/X11R6/bin/xterm Programs xterm.xpm Terminal
> 
> This works great!
> 
> AddToMenu "[EMAIL PROTECTED]@" "MuLTiMeDia" Title
> Test (x xine) AddToMenu Multimedia "&XiNe (DVD Player)%xine.xpm%" Exec exec xine
> Test (x xcdroast) AddToMenu Multimedia "XCD&RoaST" Exec xhost + && exec xcdroast
> Test (x gtcd) AddToMenu Multimedia "&CD PLaYeR%cdPlayer.xpm%" Exec exec gtcd
> Test (x dvdrip) AddToMenu Multimedia "&dvd::rip" Exec exec dvdrip

The same thing, just shorter and more readable:

  AddToMenu "[EMAIL PROTECTED]@" "MuLTiMeDia" Title
  Test (x xine)     + "&XiNe (DVD Player)%xine.xpm%" Exec exec xine
  Test (x xcdroast) + "XCD&RoaST"                    Exec xhost +; xcdroast
  Test (x gtcd)     + "&CD PLaYeR%cdPlayer.xpm%"     Exec exec gtcd
  Test (x dvdrip)   + "&dvd::rip"                    Exec exec dvdrip

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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to