leanshot/README.md

47 lines
846 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-09-30 22:56:36 +00:00
Requirements
------------
2020-12-24 00:30:32 +00:00
You must have imlib2 and OpenGL installed. Fortunately, these are relatively
common libraries.
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
Binary distributions are available on the [releases](https://github.com/iptq/leanshot/releases) page.
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
2018-05-13 21:42:19 +00:00
Contact
-------
Author: Michael Zhang
2018-09-10 08:44:10 +00:00
License: MIT