On Mon, Apr 26, 2010 at 11:24:54AM +0200, Thomas Koch wrote:
> Hi,
> 
> when I've multiple terminals with SSH connections to equivalent servers (e.g 
> with clusterssh), I'd like to have all terminal windows to have the exact 
> same 
> size. Of course in this case there remains unused space on the screen.
> Is there any layout that could do this or can I define my own layouts?
> 
> Best regards,
> 
> Thomas Koch, http://www.koch.ro
> 
> -- 
> To unsubscribe, send mail to [email protected].
> 

The "fair" layouts are similar to what you want (except the free space
thing), so you could use those as a base. Creating own layouts isn't
that hard, you simply provide a table with two keys, one being "name",
which contains a uniqe name for your layout and one being "arrange",
which is a function. The arrange function gets called with one parameter
(called 'p' in awful), which is a table with the following keys:

    "workarea" - The area the layout is allowed to work on, currently
        this is the screen minus wiboxes that are attached to one of the
        four screen edges
    "clients" - A table of clients which are to be arranged

The arrange function then simply iterates over all clients, calling
:geometry as neccessary to move clients around. That's basically it.
Using the new layout is as simple as passing it to layout.set.

-- 
GCS/IT/M d- s+:- a-- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- ?O M-- ?V PS++ PE- Y++ PGP+++ t+ 5 X+ R tv b+++ DI+++
D+++ G+ e h! r y+

    Gregor Best

Attachment: pgpGwWSM4qFnU.pgp
Description: PGP signature

Reply via email to