Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

[Feature request] Add max width & Change margin behaviour

Open donnydark0 opened this issue 5 years ago • 4 comments

  1. Max width Proposal: Adding option to set a maximum window width Reason: Allow for smaller window size when only 1 window is open, e.g. in "tall" layout, but still make use of full screen size when several windows open

  2. Margin Behaviour Proposal: Change margin behavior to only work as a separator between windows Reason: If you like a gap between windows you have to set a margin. However, margin also acts as a padding at the edges of the screen. As of right now you cannot have zero gap at the edges AND gap between windows.

donnydark0 avatar Mar 26 '20 16:03 donnydark0

I'd like to second the comment about margins. I really like having a gab between my windows, but I don't want that padding around the edges of the screen.

This could be resolved for me by allowing negative values for screen padding to account for the window margins.

minego avatar Apr 15 '20 15:04 minego

Sure, allowing negative values for screen padding will remove unnecessary space at the screen edges, which will look awesome.

vladimirlogachev avatar Dec 31 '20 11:12 vladimirlogachev

problem 1. looks related to this one: https://github.com/ianyh/Amethyst/issues/1076, slightly different solution but I believe the source problem is the same.

Im not entirely sure what you mean by:

(...) but still make use of full screen size when several windows open

chmurson avatar May 05 '22 09:05 chmurson

I'd like to voice support for max window width as well.

The idea is that if a single window is open, it's width is limited to a user defined value, leaving padding on the left and right side. If a second window is open, the layout would act as normal (no additional padding). I use LeftWM for my Linux machine and this is a feature they've included if you're looking for something to model after. This is really handy on an ultrawide monitor.

Single window:

--------------------------------------------------------
|             |--------------------------|             |
|             |                          |             |
|             |                          |             |
|             |                          |             |
|             |                          |             |
|             |                          |             |
|             |                          |             |
|             |                          |             |
|             |                          |             |
|             |__________________________|             |
--------------------------------------------------------

Multiple windows:

--------------------------------------------------------
||--------------------------||------------------------||
||                          ||                        ||
||                          ||                        ||
||                          ||                        ||
||                          ||________________________||
||                          ||------------------------||
||                          ||                        ||
||                          ||                        ||
||                          ||                        ||
||__________________________||________________________||
--------------------------------------------------------

mike-lloyd03 avatar May 05 '22 23:05 mike-lloyd03

You can achieve a max window width with a custom layout. See https://github.com/ianyh/Amethyst/issues/1076#issuecomment-1440957027

mike-lloyd03 avatar Feb 22 '23 22:02 mike-lloyd03

I'm in favor of handling something like a max window width in a custom layout because I don't see a universally correct position for such windows.

The screen padding idea (with allowances for negative values) is compelling, though. You could also accomplish that with a custom layout, but it seems more universally applicable across layouts.

ianyh avatar Feb 23 '23 00:02 ianyh