txtpik is a simple command-line text picker tool for Linux that uses Tesseract OCR to extract text.
For X11:
maim tesseract-ocr-engFor Wayland:
grim slurp tesseract-ocr-engClone the repository and run:
git clone https://github.com/6z7y/txtpik.git
cd txtpik
make installTo uninstall:
make uninstalltxtpikThen click and drag to select the text you want to extract.
You can pipe the output to a clipboard tool:
wayland: txtpik | wl-copy
x11: txtpik | xclip -selection clipboard
- Select area → Click and drag to choose text on screen
- Take screenshot → Captures selected region
- Run OCR → Tesseract extracts text from image
- Print text → Shows result in terminal
- Clean up → Deletes temporary screenshot
Wayland:
- slurp - Screen region selector
- grim - Screenshot tool
X11:
- maim - Screenshot tool with built-in selection
OCR:
- tesseract-ocr - Converts images to text
- tesseract-ocr-eng - English language support
- tesseract-ocr-[lang] - Add other languages (ara, spa, fra, etc.)
