Crates.io | leanshot |
lib.rs | leanshot |
version | 0.5.0 |
source | src |
created_at | 2018-09-26 05:56:30.913176 |
updated_at | 2021-07-13 16:01:27.5943 |
description | Screenshot capture for Linux. |
homepage | |
repository | https://git.mzhang.io/michael/leanshot |
max_upload_size | |
id | 86585 |
size | 31,108 |
Screenshot-capturing utility for X11.
You must have xcb installed.
Find it in package repositories:
To install from crates.io, use:
cargo install leanshot
leanshot -o hello.png select
leanshot -o hello.png fullscreen
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.
Author: Michael Zhang
License: MIT