#screenshot #wlroots #wayland #wayland-compositor #wayland-protocol #back-end

app wayshot

Screenshot tool for wlroots based compositors implementing the zwlr_screencopy_v1 protocol

12 stable releases

1.3.1 Dec 18, 2023
1.3.0 Jul 3, 2023
1.2.2 Sep 7, 2022
1.1.9 Jul 20, 2022
0.1.0 Feb 22, 2022

#76 in GUI

47 downloads per month

BSD-2-Clause

75KB
1K SLoC

wayshot

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


Portal integration

xdg-desktop-portal-luminous is a xdg-desktop-portal backend for wlroots based compositors, providing screenshot and screencast capabilities.

Some usage examples:

NOTE: Read man 7 wayshot for more examples.

NOTE: Read man wayshot for flag information.

Region Selection:

wayshot -s "$(slurp)"

Fullscreen:

wayshot

Screenshot and copy to clipboard:

wayshot --stdout | wl-copy

Pick a hex color code, using ImageMagick:

wayshot -s "$(slurp -p)" --stdout | convert - -format '%[pixel:p{0,0}]' txt:-|grep -E "#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})" -o

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

~19–30MB
~296K SLoC