Skip to content

Mirrored at https://git.sr.ht/~shinyzenith/wayshot | screenshot tool for wlroots based compositors implementing zwlr_screencopy_v1

License

Notifications You must be signed in to change notification settings

waycrate/wayshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6a32deb Β· Feb 12, 2025
Feb 12, 2025
Feb 12, 2025
Feb 12, 2025
Feb 12, 2025
Aug 17, 2023
Jun 27, 2023
Feb 12, 2025
Aug 22, 2023
Feb 17, 2022
Aug 22, 2023
Feb 12, 2025
Feb 12, 2025
Feb 13, 2022
Feb 12, 2025
Feb 12, 2025
Feb 12, 2025
Aug 22, 2023

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.

Screenshot and Crop Region:

wayshot -s 

Fullscreen:

wayshot

Screenshot and copy to clipboard:

wayshot --clipboard

Pick a hex color code, using ImageMagick:

wayshot -s - | 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.