This forum has been archived. All content is frozen. Please use KDE Discuss instead.

"Smart" window snapping (like Windows 10)

Tags: None
(comma "," separated)
mcaceres
Registered Member
Posts
100
Karma
0
Hey! I have been fiddling about with the Windows 10 preview on virtualbox. They have enhanced window snapping slightly: Now you can snap to corners (we've had that one for a while, though), BUT when you snap a window you also get: a) Suggestions for other windows to snap next (a mix of present windows and window snapping; a bit flaky but interesting); b) Windows will try to snap to fill in blank space, rather than set positions. This last one I really like.

For instance, if you snap a window to the right, and then resize it so it takes up 2/3 of the screen instead of 1/2, the next window you snap will not take 1/2 space, but rather the remaining 1/3. Similarly, if you have are setting up a 2 by 2 grid, and you snap 3 windows and resize one so it takes up less or more than the 1/4 space default, when you snap the 4th window to the remaining corner, it will take up the remaining blank space rather than a fourth of the screen (: Here's a gif (sorry for the awful quality)

Image

I wouldn't want the defaults to change but It'd be great to have it as an option. As an example: Often I have 3-6 windows open, and less than a quarter space is better for some, more is better for others. For instance, browsing files in Dolphin or chatting in Telepathy is just fine for me with 1/8 screen space. Reading a PDF or editing text is not. So I end up snapping to quarters and then manually resizing. Anyway, if we could have this "smart" window snapping then rearranging windows from quarters would be easier.

Is this already possible? If not, can it be implemented? Should I make a feature request? Or is it not really feasible and maybe nobody else wants this?
luebking
Karma
0
Terminology would be "quick tiling"
No, there's no present way to have the quick tile slots dynamically sized (and as soon as you resize a quicktiled window, it looses this state)

There're however two tiling WM scripts:
http://kde-look.org/content/show.php/Ti ... ent=161151
http://kde-look.org/content/show.php/TI ... ent=166024

and a script to "glue" windows (so they'll alter their size together, once they touched)
http://kde-look.org/content/show.php/St ... ent=157382

KWin also has shortcuts to "pack" windows, what will make them move/grow/shrink towards the next other window.

-> I assume the glueing script would get you closest to the requested behavior just that:
a) you'd tile first and resize afterwards
b) the resized windows can no longer be "untiled"

On a personal advert, the bespin window decoration has a "hidden" feature:
you can scroll the maximize button to grow/shrink the window width (press ctrl -> height) to quarter and third workspace fractions.
mcaceres
Registered Member
Posts
100
Karma
0
Awesome! The glueing/sticking script + pack/grow/shrink just made my day. I'm still getting used to the shortcuts but it's much better than what I was doing before.

I can't really work with the tiling one. It tiles all my windows and forces me to work only with tiles. I guess that's the intention but it's not really what I want. TIL3 seemed interesting, but it doesn't support a multimon setup. (Apparently this is fixed in the latest version via github). It's a shame since the gluing works for all snapped windows, regardless of where or how much of the border is snapped.

Thanks though!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar