Linux screenshot utility.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
michael 5b7e0c98a7
update deps
3 months ago
ci a 6 months ago
contrib Adds contrib/leanshot-hashed.sh. 4 months ago
imlib2 update deps 3 months ago
src update deps 3 months ago
xlib bump 6 months ago
.dockerignore separate crate for safe bindings 7 months ago
.gitignore separate crate for safe bindings 7 months ago
.travis.yml fix the name 6 months ago
Cargo.lock update deps 3 months ago
Cargo.toml update deps 3 months ago
LICENSE MIT 7 months ago
README.md update deps 3 months ago

README.md

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