~mzhang/leanshot

Screenshot tool
Update to use SHM to avoid sending large images over the protocol
update readme
Upgrade dependencies

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~mzhang/leanshot
read/write
git@git.sr.ht:~mzhang/leanshot

You can also use your local clone with git send-email.

#leanshot

Bug Tracker

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