Screenshot utility for Linux
Find a file
2021-07-28 15:53:10 -05:00
ci a 2018-09-30 10:02:52 -05:00
contrib update readme 2020-12-24 12:49:39 -06:00
src x11 2021-07-28 15:53:10 -05:00
x11 x11 2021-07-28 15:53:10 -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 add PKGBUILD for arch repos 2021-07-13 21:18:01 -05:00
Cargo.lock x11 2021-07-28 15:53:10 -05:00
Cargo.toml x11 2021-07-28 15:53:10 -05:00
LICENSE x11 2021-07-28 15:53:10 -05:00
PKGBUILD use a unique filename 2021-07-13 21:24:55 -05:00
README.md Corrects the dependency list. 2021-07-13 11:18:18 -05:00

leanshot

Screenshot-capturing utility for X11.

Requirements

You must have:

  • python3 (build-time)
  • libxcb
  • xcb-util-image

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