Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
resizing a window to a specific size in floating mode. #1949
i3-msg resize only allows "grow, shrink" as requested in #1948 .
I propose the ability to run:
This should set the side to the % of the current monitor or display. It could also be used to set the height or width in pixels.
The main use case for this would be being able to set windows to specific sizes for the floating interface. From what I understand you aim to do the tiling layout in the best way possible and i3 does a really good job of it, i3 is probably the most understandable and easy to use tiling window manager I've used.
Personally, I think the change is rather minor and I'm not opposed to it. Let's see what @stapelberg decides.
My only concern is that we currently always set both width and height and we can't change that for px anymore and I'd really like to avoid introducing entirely different syntax. Would it be OK for you to always specify width and height? So we could have
would be more complexity in the commands spec. Although we could allow special values
There are two git streams.
referenced this issue
Sep 22, 2015
For the record, I think this usecase can be covered with wmutils as well (it certainly can be scripted). So there's no immediate need to have it be part of i3. I'm not sure how well wmutils supports multi-screen, though. Maybe we want to find that out before making a decision.
I suppose I'll wait and see what @stapelberg decides.
To be honest I am looking for a lightweight WM that I can use as the default for a Linux distribution I am working on. With how customizable and well documented everything is in i3 it fits in with the standards that I want within the distro.
Some people enjoy a tiling experience and others a floating experience. I just thought it would be cool if amazing experiences in both could be had within i3.
I've heard that the window manager in cinnamon can perform the result I desire however I do not want something that heavy, especially on a distribution based on Linux from Scratch.
I think looking at these features as something that 'just' benefits i3 on the floating mode side is not neccessarily a good perspective that would have the most positive outcome for i3. The benefit overall is that the changes I have requested would widen the use case for i3 which allows more people to use the cool features that i3 provides in the way they may want to.
If i3 does not force a specific use case on the user but instead allows more freedom to do things the way the user wants. I think this would nothing but benefit the window manager.
The following script I just hacked together works fine for me to resize the focused floating window to a given percentage:
So in conclusion, as of now, this doesn't seem to be properly available in wmutils.
@edge226 Although this is closed exactly an year ago. As a death anniversary to this ;) I would like to suggest you a solution, which was suggested in https://faq.i3wm.org/question/1177/set-window-to-fixed-percentage-size.1.html
Hope this helps :)