Skip to main content

A tool for taking screenshots

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

snapthing-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snapthing-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file snapthing-0.1.0.tar.gz.

File metadata

  • Download URL: snapthing-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for snapthing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 68ee9199529d204933cfb3787e36c13512816eea66b7cab3cd5042f7b2f1301b
MD5 7dd759c65d4b2cace8cc8096c987f26f
BLAKE2b-256 c6c436abb838df5180ded26b62ad0b9e7ddec19ccdff9464bfdc636922d1978b

See more details on using hashes here.

File details

Details for the file snapthing-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: snapthing-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for snapthing-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7088fc82c5c56a8f40dad7ab137827ac4d6e16bf6f9058b1c511c13ba19a5f13
MD5 7f2bd22f2fdc33f75217bb8cab2cab74
BLAKE2b-256 daf7466fd2a5b1f1da10856762d59e5d47a51848fe7b3f3dd4ff07a12d44e95d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page