Johan Vromans on  wrote...
|
| For more info, http://johan.vromans.org/articles/MyDesktop/ .
|

On your Openbox page you say...
| One thing I have been missing for a while is the ability to start
| applications with their windows at a desired postion and size.
| Straightforward X11 applications can do it, but modern GTK based
| programs cannot. Why? Noone has been able to tell me.
|
I hated not being about to specify where everything should be placed.
Like you I incrementally created scripts which take the current screen
size (from "xrdb" in a simular way you do) and determines the best font
size and xterm position layout for that size screen.   I definatally
do not want to loose this.

I also like my icons, and prefer icons rather than a 'windows list'
that you prefer. But that should be okay.


My solution..

DO NOT run gnome-session  directly!!!
Though in your case you can probably do this from either your
"start-gadgets" or the 'WM_TOOLS' section of your "Startup" script.

My .xinitrc starts the window manager, and the xterms and other standard
Xclients first.  Only after my clients are setup do I launch
gnome-session.

This seems to work very well.  Though in some cases gnome-session
locks up during its start up looking for a complient window mamanger.
Probably will nto be a problem with "openbox"


Of course XTerms do obey commandline  -geometry settings which many
so called modern applications do not understand or use.

I first needed to find the Window-ID and that I used a wrapper
around 'xwininfo' which waits for and returns the client window-ID.

  firefox -P default &
  if  id=`xwin_find 60 "Anthony .* Mozilla Firefox"`;  then
    ...
  fi

I can then use a program called "xwit" to reposition the window

    xwit -resize 820 1000 -move 530 70 -iconify -id $id

In CTwm I could also use xprop  to re-define which workspace a window
is being displayed on.

    xprop -id $id -f WM_OCCUPATION 8s -set 'WM_OCCUPATION'  DeltaWS

I have a feeling "openbox" would not allow this!

My biggest problem has been that after gnome-session is finished (which
can take some time), it ^&%$# resets the Xresources that new XTerms rely
on to set fonts as well as some "key to string" mappings  

Do you have any idea about how I can tell when gnome is finished
processing, or stop it resetting resources?

ASIDE: I'd also love it if something like "xbindkeys" could do a
'event->multi-events' type mapping, but I have yet to see something like
that.  With that I could then press a function key and have my email, or
web site typed in into browser windows, and not just XTERMs.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
    I've heard of  hunt-and-peck  typing,
                        but his is more  search-and-destroy!
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/

Reply via email to