9 unstable releases (3 breaking)

0.5.0 Jul 13, 2021
0.4.1 Jan 6, 2021
0.4.0-rc Dec 24, 2020
0.3.4 Jul 13, 2020
0.1.0 Sep 26, 2018

#614 in Unix APIs

Download history 11/week @ 2023-10-29 11/week @ 2023-11-12 3/week @ 2023-11-19 28/week @ 2023-11-26 18/week @ 2023-12-03 9/week @ 2023-12-10 18/week @ 2023-12-24 10/week @ 2023-12-31 9/week @ 2024-01-14 11/week @ 2024-01-21 19/week @ 2024-01-28 2/week @ 2024-02-04 30/week @ 2024-02-11

68 downloads per month

MIT license

18KB
399 lines

leanshot

Screenshot-capturing utility for X11.

Requirements

You must have xcb installed.

Installation

Find it in package repositories:

To install from crates.io, use:

cargo install leanshot

Usage

leanshot -o hello.png select
leanshot -o hello.png fullscreen

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.

You can find other scripts in the contrib/ directory.

Contact

Author: Michael Zhang

License: MIT

Dependencies

~15MB
~127K SLoC