domferr / tilingshell

Extend Gnome Shell with advanced tiling window management. Supports multiple monitors, Windows 11 Snap Assistant, Fancy Zones, customised tiling layouts and more.
https://extensions.gnome.org/extension/7065/tiling-shell/
GNU General Public License v2.0
207 stars 3 forks source link

[Feature request] Allow snapping windows to corners and edges by moving them there #35

Closed Moudoux closed 1 week ago

Moudoux commented 2 weeks ago

Describe the feature you'd like Currently you have to hold CTRL (or what the user has set it to) to enable the tiling system. It would be great if there was a setting to enable snapping windows to corners by moving them to the corners (Similar to how it works in Windows 11), without holding any key on the keyboard. Specifically corner snapping with the window taking up 1/4 of the screen, since Gnome already supports snapping windows to half the screen by moving them to the side.

Additional context There already exists an extension that does this (WinTile), however, it is kind of buggy and doesn't really work as it should. It would make sense to add this feature to this extension since it already does window snapping.

I'd also just like to say that this is by far the best tiling extension for Gnome

domferr commented 2 weeks ago

Hey thank you for your suggestion! I was thinking about it too, it would be very nice! At first I may implement it with fixed quarter tiles, so moving the window to the corners it can be snapped to that 1/4 of the screen. Later, when that feature will be reliable enough, I would like to allow using the layout editor to edit that too! Basically giving the freedom to have any behavior you may prefer when moving a windows to the side of the screen or to the corners.

I'd also just like to say that this is by far the best tiling extension for Gnome

Thank you! I'm glad you are enjoying it!

kleinHeiti commented 2 weeks ago

I would like to give you a little hint: Please don't just add a 1/4 snap. Please also include a 1/1 (i.e. fill the full screen / maximize the window).

The layout selection becomes visible when the mouse pointer moves to the centre of the top edge, but does not take up all the space there.

So if the mouse moves past the layout selector to the edge, this could maximise the window.

This is also how it works in Win 11 and would adjust the behaviour accordingly.

domferr commented 2 weeks ago

I would like to give you a little hint: Please don't just add a 1/4 snap. Please also include a 1/1 (i.e. fill the full screen / maximize the window).

The layout selection becomes visible when the mouse pointer moves to the centre of the top edge, but does not take up all the space there.

So if the mouse moves past the layout selector to the edge, this could maximise the window.

This is also how it works in Win 11 and would adjust the behaviour accordingly.

Hey, I totally agree with you! I think that how Windows 11 handles edge tiling has great UX and it is actually useful.

kleinHeiti commented 1 week ago

Oh, I got exactly the described behaviour when I activated Tilling Assistant in addition to Tilling Shell (I did it by mistake).

Works well together.

kleinHeiti commented 1 week ago

Bildschirmaufzeichnung vom 2024-06-22 10-27-16_1.webm

domferr commented 1 week ago

I've been working on this lately. If you want to try it in advance, I leave here the new version (v10)! It's still under development, so if you try it please share any feedback or bug!

Screencast from 2024-06-22 22-12-22.webm