https://github.com/bruflot/xscreen-rs
Screenshot utility written in Rust.
https://github.com/bruflot/xscreen-rs
screenshot-utility
Last synced: 7 months ago
JSON representation
Screenshot utility written in Rust.
- Host: GitHub
- URL: https://github.com/bruflot/xscreen-rs
- Owner: Bruflot
- License: mit
- Created: 2019-06-29T20:48:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-09T03:59:05.000Z (about 5 years ago)
- Last Synced: 2025-01-19T06:25:33.573Z (9 months ago)
- Topics: screenshot-utility
- Language: Rust
- Size: 48.8 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `xscreen-rs`
[](https://travis-ci.com/Bruflot/xscreen-rs)
[](https://tokei.rs/b1/github/bruflot/xscreen-rs)> A simple and fast screenshot utility for X11 that aims to emulate macOS' screenshot tool.
> Supports region, window, and fullscreen capture.A compositor is required. Colors of the overlay can be edited in `src/overlay.rs`.
**Note:** Be sure to compile the project with the `--release` flag, as the speedup is exponential!
## Usage
Global keybinds must be handled by your window manager.```
xscreen [FLAGS] [OPTIONS]FLAGS:
-h, --help Prints help information
-r, --region Captures a region of the screen
-V, --version Prints version information
-w, --window Captures a specific windowOPTIONS:
-d, --delay Delay the screenshot by the specified durationARGS:
Specifies the directory in which the screenshot will be saved. Default is $HOME.
```## Clipboard
Copying the image to your clipboard can be done through e.g. `xclip`:
```
$ xscreen /tmp/xscreen.png
$ xclip -selection clipboard -t image/png -i /tmp/xscreen.png
```