waycrate / waysip

Wayland native area selector for compositors implementing zwlr_layer_shell.
MIT License
13 stars 2 forks source link

Allow changing rectangle sizes, position and re-create rectangle before collecting region bounds #6

Open Gigas002 opened 6 months ago

Gigas002 commented 6 months ago

Don't know much about waysip's inner implementation and wayland protocol stuff, so I can't provide a decent implementation, at least in a near future. Sorry. Didn't dive deep into implementation, but I think watershot can be used as reference for this, since it has this functionality implemented. From higher level perspective, it looks like it's matching for application state (based on user input), while being in an endless loop, when the user does some nasty stuff with rectangle As for user usage perspective, I think the feature can be hidden under a new flag, -A for example (as it was proposed in a similar PR for slurp) Also, would be neat if we could also set the keybindings for this somehow (through args or config maybe?). watershot does this by matching on a Keysyms, so a similar approach can be used, I guess.

Shinyzenith commented 6 months ago

This feature sounds good to me and I'll try to impl it when I get the time.

Shinyzenith commented 6 months ago

Apologies....wrong thread