A native screenshot tool for wlroots based compositors such as sway and river written in Rust. X11 support coming soon.
Note: The project is a WIP.
Region Selection:
bash
wayshot -s "$(slurp -f '%x %y %w %h')"
Fullscreen:
bash
wayshot
Custom file path:
bash
wayshot -f ../screenshot.png
Screenshot and copy to clipboard:
bash
wayshot --stdout | wl-copy
Pick a hex color code, using ImageMagick:
bash
wayshot -s "$(slurp -p -f '%x %y %w %h')" --stdout | convert - -format '%[pixel:p{0,0}]' txt:-|egrep "#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})" -o
Pick a color, using ImageMagick:
bash
wayshot -s "$(slurp -p -f '%x %y %w %h')" --stdout | convert - -format '%[pixel:p{0,0}]' txt:-
wayshot-git
has been packaged. wayshot-bin
will be released soon.
git clone https://github.com/waycrate/wayshot && cd wayshot
make setup
make
sudo make install
Massive thanks to smithay developer Cmeissl and Victor Berger. Without them this project won't be possible as my wayland knowledge is limited.