Re: FVWM: Re: Timing problems with Close?

From: <luffmann_at_beammeup.knup.de>
Date: Fri, 6 Jun 1997 16:46:29 +0200 (MET DST)

On 6 Jun 1997, David S. Goldberg wrote:

> Date: 06 Jun 1997 08:43:32 -0400
> From: "David S. Goldberg" <dsg_at_linus.mitre.org>
> Reply-To: "David S. Goldberg" <dsg_at_mitre.org>
> To: Tim_Phipps_at_HP.com
> Cc: fvwm_at_hpc.uh.edu
> Subject: FVWM: Re: Timing problems with Close?
>
> I don't know if it's possible to do what you want directly in your
> fvwm config file, but if you're willing to let an external shell do
> the work for you, you can take advantage of the FvwmCommand module
> (it's in the extras directory). For example, I do the following in my
> ..X11Startup:
>
> doweb(){
> FvwmCommand 'Style "Netscape" StartsOnDesk 5, SkipMapping'
> $HOME/bin/xcmd netscape -geometry 900x725+1+1
> until [ `xwininfo -root -tree | grep -c Netscape` -eq 2 ] ; do
> sleep 1
> done
> FvwmCommand 'Style "Netscape" StartsAnyWhere, ShowMapping'
> }

Why not just define a function like this ?

AddToFunc "ChangeStyle"
+ "I" Style "Netscape" StartsAnyWhere, ShowMapping

bye,
   Lars


> This ensures that when I fire up netscape at login, it's first window
> goes on desk number 5. I look for two windows because (I'm guessing)
> netscape seems to have an unmapped second window that actually gets
> created first (you can't imagine how long it took me to debug that!).
> But anyway, after that, I use browse-url within emacs to pop up web
> pages and I don't want to have to jump to desk 5 to see them. Thus,
> after I detect that netscape has started and mapped its window, I
> reset the style to StartsAnywhere. For a long while I'd been doing
> this manually with a hardcoded Style and used FvwmTalk and then
> FvwmConsole to do the reset to StartsAnywhere. When I discovered
> FvwmCommand, boy was I psyched! I can see this method being used in
> the following manner for your situation:
>

--
Lars Uffmann, luffmann_at_hrz.uni-bielefeld.de, fon: +49 5202 15372
Public Key available, send in e-mail, Subject: Your Key, Please
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
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 Fri Jun 06 1997 - 12:24:17 BST

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