waycrate / wayshot

Mirrored at https://git.sr.ht/~shinyzenith/wayshot | screenshot tool for wlroots based compositors implementing zwlr_screencopy_v1
https://crates.io/crates/wayshot
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Remove slurp as a dependency, aka fork slurp to rust. #1

Open Shinyzenith opened 2 years ago

wildwestrom commented 2 years ago

So a bit of background: I was making a replacement for grimshot, basically by shelling out via rust instead.

I think you're actually 90% there, so maybe I'll just try to implement slurp functionality. Can you recommend any good resources for understanding these wayland and wlroots protocols?

Not sure if I should start with trying to draw a rectangle (for the selection box) or detect mouse events (to select things).

Shinyzenith commented 2 years ago

Hi!

So a bit of background: I was making a replacement for grimshot, basically by shelling out via rust instead. I've already created a port of grimshot to wayshot and slurp (https://github.com/Shinyzenith/.dotfiles/blob/master/.config/bin/bin/swappyshot)

I think you're actually 90% there, so maybe I'll just try to implement slurp functionality. Can you recommend any good resources for understanding these wayland and wlroots protocols? Sure!

Not sure if I should start with trying to draw a rectangle (for the selection box) or detect mouse events (to select things).

  • Starting with a box would be the first step, the layer shell example I linked above showcases a rectangle if my memory serves me well.
Shinyzenith commented 6 months ago

For interested individuals -- this has been completed and we are going to integrate it soon