qewer33/Exquisite

feature idea: being able to select multiple windows to resize a window to cover all the selected windows

imthenachoman opened this issue · 3 comments

When you open Exquisite, it shows you all the layouts and windows in each layout.

It would be cool if you could select multiple windows in a layout to resize a window to cover all the selected windows.

Using my layouts as an example:

image

The 4th one is a 4x4 grid. If I could select the windows starting from 2x2 to 3x3, then Exquisite would resize the window accordingly.

Or, the 2nd one is a 1:2:1 layout. If I could select the 2nd and 3rd column, the window would size to cover both of those.

This could be done by either SHIFT clicking or click + dragging the mouse.

The beauty of this is, we could create a few grid layouts like 4x4, 6x4, 8x4, etc... and then use this feature to dynamically size windows as you need when you need.

To add more details, using the below image:

image

  • You'd start selecting the window labeled 1
  • You'd end selecting the window labeled 2
  • The end result is your application sizes to take up the windows inside the red box.

Nice idea, could be doable if I find a way to get modifier keys to work (KWin doesn't provide a direct way to get keyboard inputs from scripts). In the meanwhile, you can take a look at this extension (https://github.com/pudymody/kde-manualtiling), which is a simple extension that only does what you described.

@qewer33 Can it get mouse down and mouse up events? So a user could click and hold on the top left, and then drag to bottom right. Would that work?

I will check out that other extension. Thank you!