[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Determine XTerm Geometry



On 1/22/14, Patrick Bartek <bartek047@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

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


Reply to: