Re: FVWM: commands to modules

From: Todd Fries <tfries_at_umr.edu>
Date: Thu, 30 Nov 1995 15:22:39 -0600 (CST)

> Is there a way to pass a command directly to a module from a menu?

not directly. One way I see of doing what you want is try using a combo
of a 'read' command and a function:

AddToMenu Backgrounds "Backgrounds" Title
+ "background1%background1.xpm%" Function bg1
+ "background2%background2.xpm%" Function bg2
+ "background3%backgorund3.xpm%" Function bg3
+ "background4%background4.xpm%" Function bg4
AddToFunc bg1 "I" Read /home/whoever/.fvwm/fvwm-bg1
+ "I" FvwmBack
AddToFunc bg1 "I" Read /home/whoever/.fvwm/fvwm-bg2
+ "I" FvwmBack
AddToFunc bg1 "I" Read /home/whoever/.fvwm/fvwm-bg3
+ "I" FvwmBack
AddToFunc bg1 "I" Read /home/whoever/.fvwm/fvwm-bg4
+ "I" FvwmBack

and then have the contents of /home/whoeever/.fvwm/fvwm-bg1, for example, be:

*FvwmBackerDesk 4 xpmroot /usr/local/X11R6/include/X11/pixmaps/background1.xpm

> Would it be necessary to call Module FvwmBack afterward? Maybe FvwmForm
> could be used instead? Any advice here would be great.

FvwmForm could be used, but personally, I like seeing a menu that SHOWS me
what background I'm about to select, selecting it, and watching it change with
no further ado.

BTW, I've not tested the above, so something might not work, but I think you
get the idea.

-- 
Todd Fries...tfries_at_umr.edu
http://www.cs.umr.edu/~tfries
--
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Nov 30 1995 - 15:34:05 GMT

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