FVWM: Argument Passing?

From: Thomas A. Gardiner <gardiner_at_pas.rochester.edu>
Date: Mon, 17 Jan 2000 08:48:13 -0500 (EST)

Brad,

Thanks for the suggestions. Variants of this were proposed by John Latham
and Dan Espen. (Many thanks again!) What you call MyRestart they called
SwitchDecor and the suggestions were

AddToFunc SwitchDecor
+ "I" PipeRead "echo $0 > HOME/USER_WM_STYLE"
+ "I" Restart HOME/bin/RunWM

AddToFunc SwitchDecor
+ "I" PipeRead "echo $0 > HOME/USER_WM_STYLE; echo -n Restart HOME/bin/RunWM"

, the PipeRead guaranteeing the order of execution. Both word great.
Quite honestly I guess I just don't yet understand the fvwm2 _way_ of
doing things since I'm learning by basicaly hacking on the AnotherLevel
package which appears to be a bit out of date (eg. not a single PipeRead
statement exists in the version of AnotherLevel I'm using!). Well, all in
due time...

Thanks,
Tom

__________________________________________________________________________

On Mon, 17 Jan 2000, Brad Giaccio wrote:

>Tom,
>
>This seemed to simple since it sounds like you know your way around your
>rc file but could you do something like
>
>AddToFunction MyRestart
>+ "I" echo $1
>+ "I" Restart $HOME/RunWM
>
>AddToMenu RestartMenu
>+ "I" MyRestart FvwmFoo
>+ "I" MyRestart FvwmBar
>
>That would call a function that could do both.
>
>
>Brad
>
>On Fri, Jan 14, 2000 at 01:44:17PM -0500, Thomas A. Gardiner wrote:
>> This looks like it should work but again the menu item chosen would need
>> to do two things, set an environment variable and restart fvwm. If I
>> could make this work I couls also make other things work.
>>
>> For example, in bash (and most other shells ) I can do composite commands
>> like cd /foo/bar ; echo hi > there ; cat there
>>
>> Is it possible to use the Restart function to do this
>>
>> Restart echo FvwmFoo > $HOME/.wm_style ; exec $HOME/RunWM
>>
>> This would be ideal.
>>
>> Tom
>>
>>
>
>--
>--- There are two kinds of knowledge, you either know the answer or
> you know where to find it
> -Kane, Johnson, and anonymous
>--
>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.
>



--
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 Mon Jan 17 2000 - 07:51:52 GMT

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