#screenshot #wayland #wlroots

app wayshot

Screenshot tool for wlroots based compositors implementing the zwlr_screencopy_v1 protocol

10 stable releases

1.2.2 Sep 7, 2022
1.2.1 Sep 6, 2022
1.1.9 Jul 20, 2022
1.1.7 May 29, 2022
0.1.0 Feb 22, 2022

#205 in GUI

Download history 13/week @ 2022-11-21 1/week @ 2022-11-28 1/week @ 2022-12-05 1/week @ 2022-12-12 12/week @ 2022-12-19 3/week @ 2022-12-26 7/week @ 2023-01-09 6/week @ 2023-01-16 22/week @ 2023-01-23 22/week @ 2023-01-30 73/week @ 2023-02-06 29/week @ 2023-02-13 44/week @ 2023-02-20 1/week @ 2023-02-27 3/week @ 2023-03-06

77 downloads per month

BSD-2-Clause

33KB
684 lines

wayshot

A native, blazing-fast 🚀🚀🚀 screenshot tool for wlroots based compositors such as sway and river written in Rust.


Some usage examples:

NOTE: Read man 7 wayshot for more examples.

NOTE: Read man wayshot for flag information.

Region Selection:

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

Fullscreen:

wayshot

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

Known bugs:

Multi monitor systems break on --slurp usage. This is quite the tricky bug and will need some refactoring which we're currently working on. (https://github.com/waycrate/wayshot/issues/7)

Installation

AUR:

wayshot-git & wayshot-bin have been packaged.

Compile time dependencies:

  • scdoc (If present, man-pages will be generated.)
  • rustup
  • make

Compiling:

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

Support:

  1. https://matrix.to/#/#waycrate-tools:matrix.org
  2. https://discord.gg/KKZRDYrRYW

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.

Dependencies

~6–11MB
~202K SLoC