Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size limits on tiled windows #4414

Open
Readf0x opened this issue Jan 11, 2024 · 5 comments
Open

Size limits on tiled windows #4414

Readf0x opened this issue Jan 11, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@Readf0x
Copy link

Readf0x commented Jan 11, 2024

Description

Would it be possible to make the minsize and maxsize window rule work when a window is tiled? Personally I don't need height limits on a tiled window, but it is painstaking to manually resize specific windows that I want tiled.

For example, scrcpy:
Ideal:
image
Reality:
image

It would be a nice quality of life feature. And yes, I know pseudo tiling exists, but it's not what I'm looking for. I want other tiles to fill the empty space (in specific cases).

@Readf0x Readf0x added the enhancement New feature or request label Jan 11, 2024
@sakarie9
Copy link

Some programs display "compressed" when they have been resized too small, such as Firefox.

It would be helpful to have Windows rules to limit the minimum size of the window.

图片

@kauesena
Copy link

I am new to hyprland and I am also looking for a way to do that. I want to set a maximum width to all tiled windows. Even when there is only one tiled window, I usually do not want it to take all the horizontal space; webpages or terminal lines, for example, may be too wide. (I'd also like to keep the option of maximizing it when needed though.)

The tiling program Bismuth on kwin (KDE plasma's window manager) had an option called "Restrict window width: window-width/screen ratio" which allowed that.

@diego-velez
Copy link

I would love a way to this, since I have a super-ultrawide monitor and could use a way to set a max for all windows. Specially when I only have one window open, it should have a max width, be centered, and the left and right sides should be empty.

@ACodingPhoenix
Copy link

This would be an amazing feature to have! I was running into the exact same issue with scrcpy 😄 Was about to open an issue myself but found this one was open already! 👍

@Phantomwise
Copy link

That would be super useful, I have the same problem where I keep having to resize media players so they don't take half the screen.

I would love a way to this, since I have a super-ultrawide monitor and could use a way to set a max for all windows. Specially when I only have one window open, it should have a max width, be centered, and the left and right sides should be empty.

Allowing a single tiled window not to take the whole space seems like a separate issue, and there's a post that mentions a workaround you might try, using gaps to achieve the same effect :
#2092 (comment)

But having max window size working only when there's several windows would already be super useful. Ex a window taking the whole width when it's the only window, and the same window having a max width when it shares the width with another window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants