emvaized / kde-snap-assist

KWin script for KDE Plasma which suggests other window thumbnails on snap
https://store.kde.org/p/1875687
GNU General Public License v3.0
119 stars 7 forks source link

[Feature Request] Autoresize without asking the user #32

Closed Terkyz closed 2 years ago

Terkyz commented 2 years ago

An option to automatically resize windows without prompting the user could be useful, for example, if I have two 1/2 windows, I just want that, 1/2, I don't have any more windows open so I don't need KDE Snap Assistand asked me how I want to arrange my windows

emvaized commented 2 years ago

Well, if I understood your request correctly, this is something I already have in work under the dev branch, as an extension to already existing "snap groups" features. The feature is called "Try to fit snapped window in group behind it", and you can read more about the idea behind it here.

However, the thing is quite unstable now, requires "Raise snapped windows together" feature enabled, and relies on last activation time to determine if there's an active snap group behind the newly snapped window. Also, doesn't work on Wayland yet.

Few examples of it in work:

two-windows-snap

fit-in-group-behind