darkstego / Mudeer

KDE Plasma Screen Splitting Shortcuts ideal for Ultrawide and Super-Ultrawide Monitors
MIT License
157 stars 13 forks source link

Provide and option to split the vertical segments into thirds or quarters #10

Closed darkstego closed 1 year ago

darkstego commented 1 year ago

Currently the tiling allows to partition the screen space horizontally by halves, thirds or quarters, but vertically it only allows for half splits. Initially I felt this was sufficient since monitors have way more space in the horizontal than the vertical, and with my main use case being super-ultrawide monitor it has been enough, and it guided the design of using shortcuts to move the windows.

I do agree that limiting the vertical splits to only 2 segments doesn't work for everyone, so I am looking to see if there is a method to expand the current system to make it simple to allow more splits in the vertical while not making the shortcut system even more unwieldy than it already is.

One idea that I had was to allow for a sequential input mode, when enabled the same shortcuts that split by thirds and quarters can be pressed again quickly to move the window to the correct height. So if Super-a is the shortcut for the first third segment, then pressing it once will move the window to the left third of the screen, and pressing it again will move it to the top third of that segment. This will allow way more possible positions without the need for adding any more shortcuts. The idea is to make this mode an option and also allow the sequential button timeout period to be adjustable in the script's setting.

sandro-mancuso commented 1 year ago

Thanks for creating this!

Quick feedback on the sequential input: I love the idea, and I don't at all mind repeated keystrokes to get it to "the right location" - Anything to avoid having to move it with the mouse, if I'm being honest! What I might find frustrating though is if the window was already in one of the defined thirds, say, position 2 of 6, and I want to move it to position 4 of 6, that I'd have to press Super-a 4 times instead of 2, because instead of the keystroke taking me to the next third, it starts from 1 again. Just a thought, in case that's achievable. Obviously if the shortcut is for thirds, but the window size/position is not in one of the thirds, then it only makes sense to start from the first one.

On the other hand, fewer shortcuts is not just easier to remember, but it requires fewer "exotic" keystroke combinations to prevent overlap with other shortcuts. I hadn't thought of this at all, but I'm very much sold on this now that you mention it.

darkstego commented 1 year ago

What I might find frustrating though is if the window was already in one of the defined thirds, say, position 2 of 6, and I want to move it to position 4 of 6, that I'd have to press Super-a 4 times instead of 2, because instead of the keystroke taking me to the next third, it starts from 1 again. Just a thought, in case that's achievable.

What I am suggesting will only take 2 presses to get into any position you want. To take the example image you made. If you want to move to the x location below it is only 2 presses from anywhere.

224595283-f8b48c46-d61b-46ef-89d0-149d95f85ddf

First you want to move to the left third so you press Super-a and then you want to move to the middle third by height, so you press Super-s. If done in quick succession it will consider the first to be an align by width and the second to be align by height. That way you don't need to memorize any new shortcuts and it will only require 1 more keypress to get anywhere.

sandro-mancuso commented 1 year ago

I get it now :+1:

darkstego commented 1 year ago

This feature was added in the latest version (v4.0). You can now use sequential tiling to get vertical tiling by thirds and quarters.