lcpz / lain

Awesome WM complements
GNU General Public License v2.0
1.06k stars 210 forks source link

[Feature request] new layout #511

Open joaopauloalbq opened 3 years ago

joaopauloalbq commented 3 years ago

Hi Luca o/

I am looking for a layout to be used in the Revelation that preserves the most common positions of the windows (1, 2 and 3) and presenting the largest contents of the windows for easy identification.

    --        (1)                (2)                (3)
    --   +---+---+---+      +---+---+---+      +---+---+---+
    --   |           |      |     |     |      |     |  2  |
    --   |     1     |  ->  |  1  |  2  |  ->  |  1  +-----|  ->
    --   |           |      |     |     |      |     |  3  |
    --   +---+---+---+      +---+---+---+      +---+---+---+

    --        (4)                (5)                (6)
    --   +---+---+---+      +---+---+---+      +---+---+---+
    --   |  1  |  2  |      |  1  |  2  |      | 1 | 2 | 3 |
    --   +-----+-----+  ->  +---+---+---+  ->  +---+---+---+  ->
    --   |  4  |  3  |      | 5 | 4 | 3 |      | 6 | 5 | 4 |
    --   +---+---+---+      +---+---+---+      +---+---+---+

    --        (7)                (8)                (9)
    --   +---+---+---+      +---+---+---+      +---+---+---+
    --   |   | 2 | 5 |      |   | 3 | 6 |      | 1 | 4 | 7 |
    --   |   +---+---+      | 1 |---+---+      +---+---+---+
    --   | 1 | 3 | 6 |  ->  |---| 4 | 7 |  ->  | 2 | 5 | 8 |
    --   |   +---+---+      |   |---+---+      +---+---+---+
    --   |   | 4 | 7 |      | 2 | 5 | 8 |      | 3 | 6 | 9 |
    --   +---+---+---+      +---+---+---+      +---+---+---+

These positions I have no preference:

    --        (1)                (2)                (3)
    --   +---+---+---+      +---+---+---+      +---+---+---+
    --   |           |      |     |     |      |     |  2  |
    --   |     1     |  ->  |  1  |  2  |  ->  |  1  +-----|  ->
    --   |           |      |     |     |      |     |  3  |
    --   +---+---+---+      +---+---+---+      +---+---+---+

    --        (4)                (5)                (6)
    --   +---+---+---+      +---+---+---+      +---+---+---+
    --   |  1  |  2  |      |  ?  |  ?  |      | ? | ? | ? |
    --   +-----+-----+  ->  +---+---+---+  ->  +---+---+---+  ->
    --   |  4  |  3  |      | ? | ? | ? |      | ? | ? | ? |
    --   +---+---+---+      +---+---+---+      +---+---+---+

    --        (7)                (8)                (9)
    --   +---+---+---+      +---+---+---+      +---+---+---+
    --   |   | ? | ? |      |   | ? | ? |      | ? | ? | ? |
    --   |   +---+---+      | ? |---+---+      +---+---+---+
    --   | ? | ? | ? |  ->  |---| ? | ? |  ->  | ? | ? | ? |
    --   |   +---+---+      |   |---+---+      +---+---+---+
    --   |   | ? | ? |      | ? | ? | ? |      | ? | ? | ? |
    --   +---+---+---+      +---+---+---+      +---+---+---+

Best regards

lcpz commented 3 years ago

Hi João :wave:

I can add your layout as a variant of termfair.center, when I'll have time.

But I am also willing to accept PRs, so feel free to look at the code and try writing it yourself.