Screenshot utility for Linux
Find a file
2020-10-20 21:11:41 -05:00
ci a 2018-09-30 10:02:52 -05:00
contrib Adds contrib/leanshot-hashed.sh. 2018-12-13 22:35:06 -06:00
src Depend on safex11 2020-10-20 21:11:41 -05:00
.dockerignore separate crate for safe bindings 2018-09-10 20:31:25 -05:00
.editorconfig push some restructure 2020-06-26 13:51:31 -05:00
.gitignore separate crate for safe bindings 2018-09-10 20:31:25 -05:00
Cargo.lock Depend on safex11 2020-10-20 21:11:41 -05:00
Cargo.toml Depend on safex11 2020-10-20 21:11:41 -05:00
LICENSE push some restructure 2020-06-26 13:51:31 -05:00
README.md update deps 2019-01-22 16:22:07 -06:00

leanshot

dependency status

Screenshot-capturing utility.

Requirements

You must have imlib2 and OpenGL installed. Fortunately, these are relatively common libraries.

Installation

Binary distributions are available on the releases page.

To install from crates.io, use:

cargo install leanshot

Example Integration

It's nice to have a script like:

#!/bin/bash
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

Then, you can bind this script to the keybinds of your choice using your window manager's config.

Contact

Author: Michael Zhang

License: MIT