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 · 5 comments · May be fixed by #6571
Open

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

Atemo-C opened this issue May 19, 2024 · 5 comments · May be fixed by #6571
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 (4th revision :trollface: scope expansion + modularity)
  • config option(s ?)
  • swap existing logic (cursor shapes and directions)
  • handle new directions
  • dwindle layout screen edge windows not respecting resize directions

--- draft PR ---

  • floating windows bugged
  • fix inconsistent resize on border
  • pseudotiled window resize
  • master layout not respecting resize directions
  • docs

@Truenya
Copy link
Contributor

Truenya commented Jun 14, 2024

@Agent00Ming still working?

@Agent00Ming
Copy link
Contributor

Agent00Ming commented Jun 14, 2024

yeah. WIP here

@Agent00Ming Agent00Ming linked a pull request Jun 17, 2024 that will close this issue
9 tasks
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

Successfully merging a pull request may close this issue.

4 participants