leanshot/README.md

46 lines
742 B
Markdown
Raw Normal View History

2018-09-30 13:43:39 +00:00
leanshot
========
2018-05-13 21:42:19 +00:00
2020-12-24 18:49:39 +00:00
Screenshot-capturing utility for X11.
2018-05-13 21:42:19 +00:00
2018-09-30 22:56:36 +00:00
Requirements
------------
2020-12-24 18:49:39 +00:00
You must have xcb installed.
2018-09-30 22:56:36 +00:00
2018-05-13 22:36:49 +00:00
Installation
------------
2018-09-30 22:56:36 +00:00
To install from crates.io, use:
2018-09-30 13:43:39 +00:00
```
cargo install leanshot
```
2018-05-14 23:55:28 +00:00
Example Integration
-------------------
2018-09-30 13:43:39 +00:00
It's nice to have a script like:
2018-05-14 23:55:28 +00:00
```bash
#!/bin/bash
2018-09-30 13:43:39 +00:00
SCREENSHOT=$HOME/.cargo/bin/leanshot
# choose some file to save it to
FILE="/path/to/screenshot.png"
$SCREENSHOT $1 -o $FILE
# optional: copy to clipboard
XCLIP=/usr/bin/xclip
$XCLIP -selection clipboard -t image/png -i $FILE
2018-05-13 22:36:49 +00:00
```
2018-09-30 13:43:39 +00:00
Then, you can bind this script to the keybinds of your choice using your window manager's config.
2018-05-13 22:36:49 +00:00
2020-12-24 18:49:39 +00:00
You can find other scripts in the `contrib/` directory.
2018-05-13 21:42:19 +00:00
Contact
-------
Author: Michael Zhang
2018-09-10 08:44:10 +00:00
License: MIT