Re: FVWM: launch a window maximized ?

From: Johannes Zellner <johannes_at_zellner.org>
Date: Sun, 23 Jul 2000 21:56:34 +0200

On Sun, Jul 23, 2000 at 11:54:06AM -0700, Michael Han wrote:
> On Sun, Jul 23, 2000 at 07:50:23PM +0200, Johannes Zellner wrote:
> > Hello,
> > How can I lauch an application maximized ?
> > E.g. I'd like to lauch rxvt always occupying the whole root window ?
>
> Well, either explicitly set the geometry in the commandline for
> whatever invocation path you choose (shell alias, in the FVWM Exec

The problem with specifying the geometry is that it depends on the font.
I could certainly use rxvt -geometry 169x57, but if the font happens to
change (e.g. because I change the X resources) this fails.

> command, etc.), or, if you're using FVWM to invoke rxvt, you could put
> together a function like this:
>
> AddToFunc StartMaxRxvt I Exec exec rxvt
> + I Wait rxvt
> + I Current (rxvt) Maximize 100 100
>
> I'm not positive that's right, but it certainly is in the right
> ballpark. Look at the manpage for more info.

I had a look at it. And I had it even before I posted mail initial mail!
I also tried what you proposed (and a few other alternatives). No luck.
Your example toggles the maximize state of an rxvt which is already
on the screen. (E.g. if this window is normal size, it gets maximized,
if it is maximized it gets back it's normal size). The wait returns
immediately if there is already an rxvt on the screen. I tried also
something like

AddToFunc StartMaxRxvt I Exec exec rxvt -n 'my_name'
+ I Wait my_name
+ I Current (my_name) Maximize 100 100

no luck.

I also searched for something like

    Style '*my_name*' Maximized

but a style `Maximized' does not seem to exist.
hmm. I thought that /must/ be easy. But it doesn't seem so.


-- 
   Johannes
--
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 Sun Jul 23 2000 - 14:56:30 BST

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