Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

[WIP] Start work on split direction preselection support

Open freundTech opened this issue 1 year ago • 4 comments

Describe your PR, what does it fix/add?

Support for split direction preselection support. Implements #836.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

This PR is work in progress. The basic functionality works, but there are unhandled edge cases and there is no visual feedback for a preselection existing yet.

I don't have a lot of experience with rendering code, so it would help me a lot if someone could contribute something there.

Is it ready for merging, or does it need work?

No.

freundTech avatar Oct 24 '22 07:10 freundTech

Sorry, I completely missed your issue somehow.

Anyways, I think this is a bad idea. Dwindle is a dynamic layout and not manual one like i3.

Why would we want that? Defeats the entire point of dynamic tiling.

vaxerski avatar Oct 24 '22 09:10 vaxerski

I'm coming from bspwm, which is mostly a dynamic tiling wm, but also has some manual features. I'm currently testing Hyprland on one of my machines.

I have dwindle.preserve_split set, as I don't like my wm to change my layout just because I'm resizing a window.

Usually I want new windows to be placed dynamically, but sometimes I want to put a window at a specific position. With preserve_split this is already kind of possible by opening multiple new windows and then moving windows around and closing some again in the right order (which I don't recommend. I just want to illustrate that the end result is already reachable, just not practical)

This PR would make it possible to bind a new key-combination that allows you to preselect where the next window appears.
When not using the splitpresel dispatcher everything behaves exactly as before. When dispatching the splitpresel dispatcher the position and split direction of the next window will be preselected. After the next window was opened the preselection is automatically deactivated and the default behavior applies again for all further windows.

Further, dwindlw already supports dwindle:force_split, which can set the split direction (at least l/r and u/d) globally. This PR would allow setting the split direction as a "one-shot" for just the next window.

freundTech avatar Oct 24 '22 12:10 freundTech

Feel free. For rendering, I'd encourage not doing that and leaving it to me once everything else in this PR is ready.

vaxerski avatar Oct 26 '22 20:10 vaxerski

This is something I'm also missing, coming from bspwm

TheZoq2 avatar Jan 28 '23 14:01 TheZoq2

Also looking for this functionality. Any ETA?

hahuang65 avatar Feb 18 '23 18:02 hahuang65

Closing because

  1. I no longer use Hyprland
  2. Was already implemented by another PR
  3. https://drewdevault.com/2023/09/17/Hyprland-toxicity.html

freundTech avatar Sep 17 '23 14:09 freundTech