Amethyst: Grid layout

Created on 16 Sep 2014  Â·  11Comments  Â·  Source: ianyh/Amethyst

It would be nice to have a layout that evenly distributes windows in a grid instead of just rows or columns.

Trello Card

enhancement help wanted layout starter issue

Most helpful comment

<strike>:+1:</strike>

scratch that, all I really wanted was 2x2, which I got with tall-right and upping the main-panel count to 2 with 4 windows.

All 11 comments

Hm. What are you thinking? Off the cuff I'm not sure it works with odd numbers of windows, though that problem can mostly be solved by leaving an empty space. Kind of awkward, but doable.

So I guess you would need shortcuts to increase/decrease row or column count and then you just tile into the spaces provided until you don't have windows left? What order would you want the windows in? Scanning horizontally through rows makes sense to me.

Basically it seems like I should be able to get a layout like this:

I'd think at 2 windows, it's like tall/columns/widescreen-tall. 3 windows splits the righthand side in half (this is still like tall/widescreen-tall). 4 windows splits the left column in half. 5 adds another column to the right side, full-height. 6 splits that column. 7 should make the left-most column have 3 splits. 8 should do the same to the center. 9 should follow suit for the right-most. Basically rinse-and-repeat adding columns to the right and then splitting each column to have a new row.

I doubt most people will go beyond 9 windows, but it's good to have a contingency plan.

Okay. That makes sense. Would you want just two rows or would you want to be able to control the number of rows?

I personally don't care about control of numbers.

Would it be possible to split the current active window either horizontally or vertically? So you press a key combo and the next window that opens splits with the active window accordingly?

That's partially how i3 works... it stores the window layout in a tree, and you can create new windows by splitting branches or adding levels, plus you can move them around the layout by moving them in the tree. I'll put a bounty on this if you can implement something similar.

Edit: even if you could just allow horizontal splits within a column of the column layout, that would be a huge feature, and sounds like it would provide the functionality kennethlove asked about.

<strike>:+1:</strike>

scratch that, all I really wanted was 2x2, which I got with tall-right and upping the main-panel count to 2 with 4 windows.

Thanks for the tip @benmosher . Any idea how to fix the main-panel count at 2 across Amethyst restarts?

Not possible yet, unfortunately. See #151

Is it possible to achieve basic grid layout? 4 windows, same size?

If you have 4 windows you can use, for example, the tall layout and increase the main pane count to 2.

What @ianyh said worked for me. Go to wide and press option + shift + ,!

Was this page helpful?
0 / 5 - 0 ratings