wayshot

A native screenshot tool for wlroots based compositors such as sway and river written in Rust. X11 support coming soon.

Usage:

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:-

Installation

AUR:

wayshot-git has been packaged. wayshot-bin will be released soon.

Compile time dependencies:

Compiling:

Support server:

  1. Use the mailing list.
  2. I don't endorse the usage of discord but if you really need it, then you can join the following server for support.

Smithay Developers:

Massive thanks to smithay developer Cmeissl and Victor Berger. Without them this project won't be possible as my wayland knowledge is limited.