wayshot 1.1.2

Screenshot tool for wlroots based compositors implementing the zwlr_screencopy_v1 protocol.
wayshot-1.1.2 is not a library.

Usage:

Region Selection:

wayshot -s "$(slurp -f '%x %y %w %h')"

Fullscreen:

wayshot

Custom file path:

wayshot -f ../screenshot.png --extension jpg

Screenshot and copy to clipboard:

wayshot --stdout | wl-copy

Pick a hex color code, using ImageMagick:

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:

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:

  • rustup
  • make

Compiling:

  • git clone https://github.com/waycrate/wayshot && cd wayshot
  • make setup
  • make
  • sudo make install

Support:

  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.