>On Mon, Sep 06, 1999 at 11:24:16PM -0400, Sam Napolitano wrote:
>> Thanks for all your help in setting up FVWM; I'm very close to getting
>> my environment "right". Now I'd like to do something a little bit
>> fancy.
>>
>> First, I was wondering if there was a way to use FvwmButton to start
>> an application AND iconify it. For example, if you have an FvwmButton
>> that starts Netscape, then:
>>
>> * if you press it and no Netscape running, a netscape starts
>> * if you press it and Netscape is running, netscape iconifies
>> * if you press it and Netscape is running and is iconified, it deiconfies
>>
>> Basically once the application is started, the button becomes an
>> "iconify" toggle. Is this possible?
>
>Try this:
>
> AddToFunc StartOrIconifyNetscape
> + I Next (!Netscape*) Exec exec netscape
> + I Next (Netscape) Iconify toggle
>
>This function relies on the fact that netscape takes a while before
>the window is created. Otherwise the new window would be immediately
>iconified by the second line. The 'toggle' syntax is new in the
>2.3.x betas. I think the old way to do this was to simply say 'Iconify'.
AddToFunc StartOrIconifyNetscape
+ I Next [! Netscape*] Exec exec netscape
+ I Next [Netscape] Iconify
*FvwmButtons(1x10, Title nettoggle, Action StartOrIconifyNetscape)
Thanks; it almost works. The iconify part works fine, but a new
netscape is always started even if one is already opened. It's as if
the !Netscape is always ignored. I'll try a few more things.
Thanks,
Sam
>
>Bye
>
>Dominik ^_^
>
>--
>Dominik Vogt, dominik.vogt_at_gmx.de
>Reply-To: dominik.vogt_at_gmx.de
>--
>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 Thu Sep 09 1999 - 10:52:23 BST