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

Bind or setting to precisely resize a window with a pointing device #6152

Open
Atemo-C opened this issue May 19, 2024 · 3 comments
Open

Bind or setting to precisely resize a window with a pointing device #6152

Atemo-C opened this issue May 19, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@Atemo-C
Copy link

Atemo-C commented May 19, 2024

Description

As pointed out in this currently unanswered discussion, one can easily resize a window precisely with keyboard shortcuts, but, when grabbing on a window's sides, resizing with a pointing device like a mouse always acts on another axis that I do not want to be acted upon, as seen in this video.

Resizing.mp4

I have looked at the wiki to see if I could change this behaviour, but to no avail.


This resizing behaviour is generally not the one I want nor expect, for it means that any imprecise movement with a pointing device like a mouse in an undesired axis will change the size of the tiles currently on the screen in an undesirable manner.

If possible, having a binding [key + mouse] would allow one to resize a window from its sides (here in white) in one axis, without affecting the others. This, ideally, could also or otherwise be done with a setting under hyprland.conf.

For example, on the image below, I could move the right side of L1 horizontally, and even if I moved my pointing device vertically during that horizontal resize, only the horizontal axis would be affected.
Layout


Any thoughts on this?

@Atemo-C Atemo-C added the enhancement New feature or request label May 19, 2024
@vaxerski
Copy link
Member

sounds like a reasonable enhancement, but it's not possible atm. Unless you write it yourself or make a plugin, of course. MRs welcome

@Atemo-C
Copy link
Author

Atemo-C commented May 19, 2024

Well, I might have to learn some programming for that, haha. Anyway, it is nice to at least know that this is not currently here, I thought for a moment that I had missed something obvious in some documentation somewhere, like I often happen to, but I am glad not to.

I hope someone with actual developing knowledge and free time will chime in to make a MR or plugin, and I will happily test it if needs be.

Thank you for the quick answer, as always.

@Agent00Ming
Copy link
Contributor

Agent00Ming commented May 25, 2024

I've got some work done on this, will post a PR when in a usable state.

Progress:

  • detection logic (3rd revision)
  • config option(s ?)
  • floating windows bugged
  • swap existing logic
    --- draft PR ---
  • docs

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

No branches or pull requests

3 participants