Files
dotfiles/waybar/scripts/Screenshot-OCR.sh
2025-07-09 10:07:01 +08:00

5 lines
151 B
Bash

#!/usr/bin/env bash
## only support EN
grim -g "$(slurp)" - | tesseract -l "eng" stdin stdout | wl-copy;notify-send "OCR content copied to clipboard"