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

Quarter/corner tiling #105

Open
peteruithoven opened this issue Oct 8, 2017 · 5 comments
Open

Quarter/corner tiling #105

peteruithoven opened this issue Oct 8, 2017 · 5 comments
Labels
Status: Blocked Something else needs to be done before this can be fixed

Comments

@peteruithoven
Copy link
Collaborator

peteruithoven commented Oct 8, 2017

Not sure why the following issue wasn't duplicated to this github repo: https://bugs.launchpad.net/gala/+bug/1432067

I'd like gala to support - in addition to tiling windows just to the left / right half of the screen when dragging per mouse - tiling to quarters of the screen. So, when dragging windows to some areas of the screen, the following should happen:

  • left top corner +/- some threshold --> tile window to the top left quarter of the screen
  • left center +/- some threshold --> tile window to the left half of the screen
  • left bottom corner +/- some threshold --> tile window to the bottom left quarter of the screen
  • right top corner +/- some threshold --> tile window to the top right quarter of the screen
  • right center +/- some threshold --> tile window to the right half of the screen
  • right bottom corner +/- some threshold --> tile window to the bottom right quarter of the screen
  • top of the screen --> maximize window

This behaviour should - as already mentioned - be possible by dragging windows per MOUSE (so please no suggestions to keyboard control, THX!)

Thank you in advance!

best regards,
Christian

I personally would also like keyboard support.

(I've been using Quicktile for quarter tiles in the mean time, but it has the following issue: #104)
Update: Quicktile doesn't work in elementary OS Juno, see: ssokolow/quicktile#95.

Also relevant: https://www.bountysource.com/issues/931574-gala-should-support-better-window-tiling

@peteruithoven
Copy link
Collaborator Author

I'm pretty sure this logic is handled by Mutter, which Gala uses, so this would probably be out of scope for Gala itself?
Recent update on this: https://gitlab.gnome.org/GNOME/mutter/issues/52#note_77121
The actual Mutter issue to track: https://bugzilla.gnome.org/show_bug.cgi?id=751857

@peteruithoven
Copy link
Collaborator Author

peteruithoven commented Oct 10, 2018

I've figured out a crude way of doing quarter tiling using this script:
https://gist.github.com/peteruithoven/db0cba0b0849c8cb5e267f6e75126304

Installation:

  1. Move file to: /usr/local/bin/quarter-tiler
  2. Make executable: sudo chmod +x /usr/local/bin/quarter-tiler
  3. Go to System Settings > Keyboard > Shortcuts > Custom
  4. Add custom shortcuts, like:
    screenshot from 2018-11-07 21 49 41

Issues:

  1. "native" elementary OS apps have a different margin around them than other apps. It's currently configured for elementary native margins.
  2. You'll have to adapt some values based on your screen size.
  3. These settings are for an HiDPI screen, it doesn't currently automatically adjust

@peteruithoven
Copy link
Collaborator Author

I've implemented a quarter tiling Gala plugin that works with keys only at the moment:
#408

@cassidyjames cassidyjames changed the title Window Tiling / Snapping to quarters of screen Quarter tiling Jan 27, 2021
@cassidyjames cassidyjames changed the title Quarter tiling Quarter/corner tiling Jan 27, 2021
@1280px
Copy link
Contributor

1280px commented Mar 25, 2023

Is this issue any active now? Would be nice to see this feature in 7.1 or 8

@nevillepark
Copy link

I also really miss this feature from other WMs and would love to see it in elementary.

@lenemter lenemter added the Status: Blocked Something else needs to be done before this can be fixed label Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Blocked Something else needs to be done before this can be fixed
Projects
None yet
Development

No branches or pull requests

4 participants