Re: Determine XTerm Geometry

2014-01-22 Thread Patrick Bartek
On Wed, 22 Jan 2014, Zenaan Harkness wrote:

 On 1/22/14, Patrick Bartek bartek...@yahoo.com wrote:
  On Tue, 21 Jan 2014, Zenaan Harkness wrote:
 
  [snip]
 
 There are a few defaults at the top of the script, and a separate
 xterm.conf file which is for my default font, scrollback and other
 settings.
 
 Extract to a tmp dir, or view the contents first. These files have
 been zipped from the root of my $HOME, thus these files:
 .config/ZBASE
 etc/xterm.conf
 bin/xt
 
 See attached,
 Zenaan

Thanks

B


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140122075604.362c9...@debian7.boseck208.net



Re: Determine XTerm Geometry

2014-01-21 Thread Zenaan Harkness
On 1/21/14, Patrick Bartek bartek...@yahoo.com wrote:
 On Mon, 20 Jan 2014, Mathias Bauer wrote:

 Hello Patrick,

 * Patrick Bartek wrote on 2014-01-20 at 13:18 (-0800):

  Need to get geometry of running xterms.  Resize gives me the
  columns and lines.  How do I get the X  Y offsets?

 take a look at

   $ xwininfo -id WINDOW_ID

 Perhaps that helps.

 It did indeed.  Gives me more than I needed.  Thanks.

 And FYI:  you don't even need the WINDOW_ID. Just run xwininfo in any
 terminal, left click on the target window, and it spits out THAT
 windows stats.

Are you wanting the location/size to script the re-creation of xterms?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caosgnsrjmb85usooygs4fs1pb9mdwner1npe8d48wr8c3av...@mail.gmail.com



Re: Determine XTerm Geometry

2014-01-21 Thread Chris Davies
Mathias Bauer mba...@gmx.org wrote:
 * Patrick Bartek wrote on 2014-01-20 at 13:18 (-0800):
 Need to get geometry of running xterms

 take a look at
  $ xwininfo -id WINDOW_ID

Also wmctrl -lG

Chris


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/vkr1raxp2q@news.roaima.co.uk



Re: Determine XTerm Geometry

2014-01-21 Thread Patrick Bartek
On Tue, 21 Jan 2014, Mathias Bauer wrote:

 * Patrick Bartek wrote on 2014-01-20 at 14:35 (-0800):
 
  And FYI: you don't even need the WINDOW_ID. Just run xwininfo
  in any terminal, left click on the target window, and it spits
  out THAT windows stats.
 
 I know :-)  You mentioned, you already had columns and lines (via
 the $COLUMNS/$LINES shell variables?), so I supposed, you wanted
 to do some non-interactive scripting...

Yes and no.  I needed the info from already running terminals to
duplicate them (size, location, etc.) on booting.  I've finally settled
on a GUI configuration -- I use only a window manager and it doesn't
remember it when I reboot.  So, I have to use a startup script to
load and place everything.

Again, thanks for your recommendation.

B


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140121081445.4e167...@debian7.boseck208.net



Re: Determine XTerm Geometry

2014-01-21 Thread Patrick Bartek
On Tue, 21 Jan 2014, Chris Davies wrote:

 Mathias Bauer mba...@gmx.org wrote:
  * Patrick Bartek wrote on 2014-01-20 at 13:18 (-0800):
  Need to get geometry of running xterms
 
  take a look at
   $ xwininfo -id WINDOW_ID
 
 Also wmctrl -lG

Thanks.

B


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140121082501.54036...@debian7.boseck208.net



Re: Determine XTerm Geometry

2014-01-21 Thread Patrick Bartek
On Tue, 21 Jan 2014, Zenaan Harkness wrote:

 On 1/21/14, Patrick Bartek bartek...@yahoo.com wrote:
  On Mon, 20 Jan 2014, Mathias Bauer wrote:
 
  Hello Patrick,
 
  * Patrick Bartek wrote on 2014-01-20 at 13:18 (-0800):
 
   Need to get geometry of running xterms.  Resize gives me the
   columns and lines.  How do I get the X  Y offsets?
 
  take a look at
 
$ xwininfo -id WINDOW_ID
 
  Perhaps that helps.
 
  It did indeed.  Gives me more than I needed.  Thanks.
 
  And FYI:  you don't even need the WINDOW_ID. Just run xwininfo in
  any terminal, left click on the target window, and it spits out THAT
  windows stats.
 
 Are you wanting the location/size to script the re-creation of xterms?

Yes.  Already accomplished.  All I needed was each running xterm's
stats.  xwininfo nicely supplied that.

For future reference:  Any other utilities you can suggest that do the
same thing?  Never can have too many tools to do the same thing.  This
is Linux after all. ;-)

B


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140121082049.64380...@debian7.boseck208.net



Re: Determine XTerm Geometry

2014-01-21 Thread Zenaan Harkness
On 1/22/14, Patrick Bartek bartek...@yahoo.com wrote:
 On Tue, 21 Jan 2014, Zenaan Harkness wrote:

 Are you wanting the location/size to script the re-creation of xterms?

 Yes.  Already accomplished.  All I needed was each running xterm's
 stats.  xwininfo nicely supplied that.

 For future reference:  Any other utilities you can suggest that do the
 same thing?  Never can have too many tools to do the same thing.  This
 is Linux after all. ;-)

Oh, well, now that you ask ... my whizz-bang algorithmic xterm layout script :)

It's taken me many hours over various months, to build up enough
knowledge of bash (dependency) to get proper subroutines, local
variables, etc, happening in a way which I think is reasonably elegant
(if one can ever call bash scripting elegant :)

As you can see in this xt script, there are many commands which can be run, eg:
xt x1x2
xt x3x1
xt x7

etc etc

There are a few defaults at the top of the script, and a separate
xterm.conf file which is for my default font, scrollback and other
settings.

Extract to a tmp dir, or view the contents first. These files have
been zipped from the root of my $HOME, thus these files:
.config/ZBASE
etc/xterm.conf
bin/xt

See attached,
Zenaan


xt.tbz
Description: application/bzip-compressed-tar


Determine XTerm Geometry

2014-01-20 Thread Patrick Bartek
Need to get geometry of running xterms.  Resize gives me the columns
and lines.  How do I get the X  Y offsets?

Thanks.

B


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140120131800.41abc...@debian7.boseck208.net



Re: Determine XTerm Geometry

2014-01-20 Thread Mathias Bauer
Hello Patrick,

* Patrick Bartek wrote on 2014-01-20 at 13:18 (-0800):

 Need to get geometry of running xterms.  Resize gives me the
 columns and lines.  How do I get the X  Y offsets?

take a look at

  $ xwininfo -id WINDOW_ID

Perhaps that helps.

Regards,
Mathias


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140120213531.ga10...@gmx.org



Re: Determine XTerm Geometry

2014-01-20 Thread Patrick Bartek
On Mon, 20 Jan 2014, Mathias Bauer wrote:

 Hello Patrick,
 
 * Patrick Bartek wrote on 2014-01-20 at 13:18 (-0800):
 
  Need to get geometry of running xterms.  Resize gives me the
  columns and lines.  How do I get the X  Y offsets?
 
 take a look at
 
   $ xwininfo -id WINDOW_ID
 
 Perhaps that helps.

It did indeed.  Gives me more than I needed.  Thanks.

And FYI:  you don't even need the WINDOW_ID. Just run xwininfo in any
terminal, left click on the target window, and it spits out THAT
windows stats.

Thanks again.

B


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140120143524.0531f...@debian7.boseck208.net



Re: Determine XTerm Geometry

2014-01-20 Thread Mathias Bauer
* Patrick Bartek wrote on 2014-01-20 at 14:35 (-0800):

 And FYI: you don't even need the WINDOW_ID. Just run xwininfo
 in any terminal, left click on the target window, and it spits
 out THAT windows stats.

I know :-)  You mentioned, you already had columns and lines (via
the $COLUMNS/$LINES shell variables?), so I supposed, you wanted
to do some non-interactive scripting...

Regards,
Mathias


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140121063702.ga23...@gmx.org