Re: FVWM: [Q] Binding an FvwmButton to iconify and/or swallow an icon

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Thu, 9 Sep 1999 21:28:16 +0200

On Thu, Sep 09, 1999 at 11:49:20AM -0400, sam_at_Zed.Progressive-Systems.Com wrote:
>
> >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

My fault. I should be

  AddToFunc StartOrIconifyNetscape
  + I None (Netscape*) Exec exec netscape
  + I Next (Netscape) Iconify toggle

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.
Received on Thu Sep 09 1999 - 14:30:19 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST