benweidig / grab-text

A Screenshot to Clipboard Shell Script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grab Text: A Screenshot to Clipboard Shell Script

This POSIX shell script triggers a screenshot tool to select an area, OCRs the content, and finally, copies the result to the clipboard.

A sea shell looking through binoculars at text

Dependencies

Tesseract OCR is a must-have without alternatives.

Supported Screenshot tools:

Supported Clipboard tools:

Optional tools:

Installation

Download the script to any location in $PATH and chmod +x

With curl:

curl -L -o "$HOME/.local/bin/grab-text" https://raw.githubusercontent.com/benweidig/grab-text/main/grab-text
chmod +x "$HOME/.local/bin/grab-text"

With wget:

wget -O "$HOME/.local/bin/grab-text" https://raw.githubusercontent.com/benweidig/grab-text/main/grab-text
chmod +x "$HOME/.local/bin/grab-text"

License

MIT. See LICENSE

About

A Screenshot to Clipboard Shell Script

License:MIT License


Languages

Language:Shell 100.0%