hyprwm / contrib

Community scripts and utilities for Hypr projects
MIT License
295 stars 40 forks source link

grimblast area suggestions #23

Closed MatthiasGrandl closed 1 year ago

MatthiasGrandl commented 1 year ago

it would be nice if the grimblast area selection would be keyboard controllable.

here is what I imagine:

also potentially a good idea would be to switch between area and window selection by pressing space (that is how it works in the MacOS screenshot utility). I know it has just been combined, but in my opinion it is strictly speaking worse in terms of accessibility. multiple times now I screenshotted a tiny (like 2x2) area because my click got interpretted as a drag on a hidpi display. let me know what you think. I might just try and implement some of those suggestions myself.

fufexan commented 1 year ago

This is not possible due to how slurp works. Keyboard arrows/enter/hjkl aren't interpreted in any way by slurp. Space is used to move the entire selected area.

So there isn't any way of switching between modes or doing anything that you propose while we're using slurp.

If you do come up with a better solution, I'd be happy to hear it.

MatthiasGrandl commented 1 year ago

Ah that's true... guess without forking slurp this won't work out then. I'll close the issue then.