Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waycrate/wayshot
Mirrored at https://git.sr.ht/~shinyzenith/wayshot | screenshot tool for wlroots based compositors implementing zwlr_screencopy_v1
https://github.com/waycrate/wayshot
Last synced: about 1 month ago
JSON representation
Mirrored at https://git.sr.ht/~shinyzenith/wayshot | screenshot tool for wlroots based compositors implementing zwlr_screencopy_v1
- Host: GitHub
- URL: https://github.com/waycrate/wayshot
- Owner: waycrate
- License: bsd-2-clause
- Created: 2022-02-13T08:46:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-07T18:57:55.000Z (4 months ago)
- Last Synced: 2024-06-12T06:45:13.038Z (3 months ago)
- Language: Rust
- Homepage: https://crates.io/crates/wayshot
- Size: 376 KB
- Stars: 105
- Watchers: 5
- Forks: 18
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
A native, blazing-fast 🚀🚀🚀 screenshot tool for wlroots based compositors such as sway and river written in Rust.
# Portal integration
[xdg-desktop-portal-luminous](https://github.com/waycrate/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:
```bash
wayshot -s "$(slurp)"
```Fullscreen:
```bash
wayshot
```Screenshot and copy to clipboard:
```bash
wayshot --stdout | wl-copy
```Pick a hex color code, using ImageMagick:
```bash
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.