Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add quarter tiling window snapping #118

Open
Jacalz opened this issue Jun 29, 2020 · 6 comments
Open

Add quarter tiling window snapping #118

Jacalz opened this issue Jun 29, 2020 · 6 comments
Labels
enhancement New feature or request Hacktoberfest

Comments

@Jacalz
Copy link
Member

Jacalz commented Jun 29, 2020

Arguably the best thing about windows is that it was the first to introduce quarter tiling window snapping. Most Linux window manager do this too, however some like Mutter in Gnome only do so with left and right in dual tiling. If we are to implement it, we ought to do it good from the start :)

The solution would look something like this:

Dragging of window:

  • Dragging to right edge of screen should tile the window to the right half of the screen.
  • Dragging to left edge of screen should tile the window to the left half of the screen.
  • Dragging to the top edge of screen should make it maximized.
  • Dragging to any screen corner should tile it to 25% of screen in that corner.
  • Window should go back to the size it had before when dragging it away again.

Moving using keyboard (using the super key, aka your windows key):

  • Super + Right should tile the window to the right half of the screen.
  • Super + Left should tile the window to the left half of the screen.
  • Super + Left followed by Super + Up should quarter tile to top left 25% of screen (same for up, down and left, right key-presses in the correct 25% corner spot).
  • Super + Down should go out of of the snapped tiling.
  • Super + Down + Down should minimize to the icon dock.

All manual dragging should show a highlight of the screen.

To sum it up, we should follow what Windows are doing :)

@andydotxyz andydotxyz added the enhancement New feature or request label Jun 30, 2020
@andydotxyz
Copy link
Contributor

Nice plan.
Not entirely certain about the keyboard shortcuts, but the concept is solid :)

If the dragging requires a highlight overlay then it may be a while as I think that requires a compositor to do well (though up for other suggestions that we could take on!)

@Jacalz
Copy link
Member Author

Jacalz commented Jun 30, 2020

The keyboard shortcuts are great. They are the same as to what Windows 7, 8 and 10 uses along with what basically every Linux window manager uses if they support window snapping :)

Some really good implementations of this would be either Windows or, on the Linux side, Mate and KDE Plasma. Those are the ones that I know support quarter tiling on top of my head and the ones that I think do a good job of how window snapping should behave 👍

@andydotxyz
Copy link
Contributor

Sure thing - sorry I didn't mean to question /having/ keyboard shortcuts. Just wasn't certain if the Windows ones specifically would be used. Figured we maybe should see what is common and/or set up what we wanted to use.
Our other shortcuts are all Alt-based which is why I had pause.

@Jacalz
Copy link
Member Author

Jacalz commented Jun 30, 2020

No worries. I understood what you meant. Though, I do think it is best to stick with what most Linux and Windows users would be accustomed to 🙂

@mattboll
Copy link
Contributor

mattboll commented Oct 1, 2021

If I may add a shortcut :
Super + up should maximize the window

@Jacalz
Copy link
Member Author

Jacalz commented Oct 1, 2021

Absolutely. I don't know how I could miss that one 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest
Projects
None yet
Development

No branches or pull requests

3 participants