leanshot/README.md

41 lines
710 B
Markdown
Raw Normal View History

2018-09-30 13:43:39 +00:00
leanshot
========
2018-05-13 21:42:19 +00:00
2018-05-14 23:55:28 +00:00
Screenshot-capturing utility.
2018-05-13 21:42:19 +00:00
2018-05-13 22:36:49 +00:00
Installation
------------
2018-09-30 13:43:39 +00:00
So far, only installation from crates.io is supported:
```
cargo install leanshot
```
Binary distributions will soon be available on the releases page.
2018-05-13 22:36:49 +00:00
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
2018-05-13 21:42:19 +00:00
Contact
-------
Author: Michael Zhang
2018-09-10 08:44:10 +00:00
License: MIT