Re: Special window startup function.
Brandon Stewart (rostewa2@vt.edu)
Wed, 22 Jul 1998 00:51:08 +0000
David Mihm wrote:
>
> On Fri, 17 Jul 1998, Brandon Stewart wrote:
>
> > Anyone got swift ideas to do the following everytime a window is opened:
> >
> > (1) move to the next empty page on the desktop
>
> Add to database StartsOnDesk # <-- # = desk number
>
> > (2) open the window
>
> Add to .xinitrc or autoexec file as 'Exec "I" app'
>
> > (3) maximize window
>
> Add the geometry to the call of the program, i.e.
> 'app -geometry 960x768'; or as an app-default in the .Xdefaults,
> i.e. 'Vim.geometry 960x768'. Remember to remove the 64 pixals on the
> horiz/x number to allow the app to site next to the wharf, not under it.
>
> The combonation of all these per app will do what you are looking
> for, if not supply a specific situation you wish to achieve.
Thank you for your suggestion. However, my intention was to do something
slightly different, and slightly more complex. I want (1), (2), and (3)
to be done for _every_ app I open, _every_ time I open it. Specifying
the geometry in the call of each and every program would be a bit much,
since any slight change would have to be done to 50+ files in the start/
directory. Perhaps I could define the geometry in the shell by $WIDTH
and $HEIGHT variables and then call each program with something like
"xterm -geometry $WIDTHx$HEIGHTx+0+0"? I should try this. Also, I didn't
really want to go to a whole new desktop, just a new page. Rather than
dragging each new window I open to a new page, it would be nice if I
could call a function to flip to the next blank page on the _same_
desktop, put the new window on that page, and maximize it. It seems to
me that this would require writing my very own module, not something to
look forward to too much. Just looking through the source code, it seems
that Auto would be the best model to work from.
Any further suggestions are welcome, any at all.
Thanks.
--
WWW: http://www.afterstep.org/
FTP: ftp://ftp.afterstep.org/
MAIL: http://www.caldera.com/linuxcenter/forums/afterstep.html