Hi all,

Is there a general way to determine the geometry of a window in X?
What I'm looking for is something that always works in gnome.

I like to have my windows all set up in a standard way (e.g., 3
terminals on a screen, sizes and location just-so, xchat windows
also open and just so, email full-screen in a particular workspace,
two browsers in different workspaces at different locations, etc).

I can get the right look by testing many different --geometry (or
-geometry) settings for the various programs but what I'd really like
to do is set up the windows just the right way and then *ask* them (or
some helper program that can query other program's geometry) what
their geometry is so i can put that in a startup script (or a single
panel button that, when clicked, opens all the windows in the right
places and sizes).

In gnome, resizing a gnome-terminal displays height and width (but not
offsets).  However, resizing, e.g., firefox, doesn't show dimensions.
So that's not a universal technique that I can use (I wouldn't mind
the manual nature of that since I'd only do it once, or once a month
if I want to tweak that often, but tweaking by running a program with
different --geometry settings converging on the right setting doesn't
appeal (although I'll do it if there's no other way :-).

tiger

-- 
Gerald Timothy Quimpo http://bopolissimus.blogspot.com
[email protected] [email protected]
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"

Usually, a very large amount of work goes into the
parsing step (Perl and C++ are probably the best
examples of this-both are basically unparseable.)
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to