# wayshot **Repository Path**: mirrors_jirutka/wayshot ## Basic Information - **Project Name**: wayshot - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-2-Clause - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-11 - **Last Updated**: 2026-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

wayshot

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

# Usage: Region Selection: ```bash wayshot -s "$(slurp -f '%x %y %w %h')" ``` Fullscreen: ```bash wayshot ``` Custom file path: ```bash wayshot -f ../screenshot.png --extension jpg ``` 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:- ``` # 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. ## OpenSuse Tumbleweed: As root: ```bash zypper addrepo https://download.opensuse.org/repositories/X11:Wayland/openSUSE_Tumbleweed/X11:Wayland.repo zypper refresh zypper install wayshot ``` ## Compile time dependencies: - 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.