SnapThing
:warn: This tool was developed for personal use and currently has only been tested on linux -- it can be made to work on mac and windows with some tinkering. If you'd like to try the tool on mac or windows, please open an issue! Contributors are also welcome!
A tool for taking screenshots. A transparent window will open at your mouse cursor, from there you can re-size the window and move it around by dragging. Once placed
over the desired area, press Enter/Return to capture a screenshot to the clipboard.
Usage
Set a global keybinding for the CLI command snapthing using your preferred tool, or simply run snapthing from the terminal.
Keybindings
Keyboard Shortcuts
| Action | Key |
|---|---|
| Copy Image | Enter |
| Exit | Esc or q |
| Resize Left | Shift+H or Shift+← |
| Resize Right | Shift+L or Shift+→ |
| Resize Down | Shift+J or Shift+↓ |
| Resize Up | Shift+K or Shift+↑ |
| Move Left | h or ← |
| Move Right | l or → |
| Move Down | j or ↓ |
| Move Up | k or ↑ |
| Copy OCR Text | c |
| Cycle Next Window Size | Tab |
| Cycle Previous Window Size | Shift+Tab |
Installation
pip install snapthing
OCR - Optical Character Recognition
snapthing also supports using OCR to extract text from the selected area (using tesseract). Press c while the screenshot window is open to copy the extracted OCR text
to the clipboard. This feature requires that you have tesseract installed on your system path, as well as the required data package for your language. See the tesseract docs for installation instructions. Without tesseract installed the OCR feature will be unavailible.
Clipboard Access
snapthing uses external programs installed on your system path to interact with the system clipboard. On linux systems, xclip will need to be installed
in order for snapthing to work. When mac and windows support is added, they will use the specific programs availible for cliboard interaction.
Linux
On Linux, snapthing will use xclip to interact with the clipboard. Since installation instructions will vary per distribution, it's easiest just to do a search for
"install xclip on " to find instructions specific to your distro.
Debian/Ubuntu
sudo apt-get install xclip
Arch/Manjaro
sudo pacman -S xclip
Metadata
Release files for snapthing 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| snapthing-0.1.0.tar.gz | 8.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snapthing-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / snapthing-0.1.0.tar.gz
| Download URL | snapthing-0.1.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68ee9199529d204933cfb3787e36c13512816eea66b7cab3cd5042f7b2f1301b
|
|
BLAKE2b-256 checksum How to use checksums |
c6c436abb838df5180ded26b62ad0b9e7ddec19ccdff9464bfdc636922d1978b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / snapthing-0.1.0-py3-none-any.whl
| Download URL | snapthing-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7088fc82c5c56a8f40dad7ab137827ac4d6e16bf6f9058b1c511c13ba19a5f13
|
|
BLAKE2b-256 checksum How to use checksums |
daf7466fd2a5b1f1da10856762d59e5d47a51848fe7b3f3dd4ff07a12d44e95d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for snapthing 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.