lcpz / lain

Awesome WM complements
GNU General Public License v2.0
1.05k stars 212 forks source link

[Feature Request] Layout like Qtile's RatioTile #529

Open hamensman opened 2 years ago

hamensman commented 2 years ago

I think it would be cool if there was a layout that behaves like Qtile's RatioTile. The lain repo has someone similar layouts, but not quite the same.

https://docs.qtile.org/en/stable/manual/ref/layouts.html#ratiotile

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

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

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

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

Thanks for your great work, @lcpz :)