diff --git a/bin/screenshot b/bin/screenshot index 34e886f..110c6e5 100755 --- a/bin/screenshot +++ b/bin/screenshot @@ -14,4 +14,10 @@ case $1 in | xclip -selection clipboard -t image/png notify-send -i camera-photo "Screenshot" "Saved to clipboard" ;; + ocr) + maim -u -s -b 5 -l -c 0.3,0.4,0.6,0.4 -d 0.1 \ + | tesseract --dpi 96 -l eng - - \ + | xclip -selection clipboard -t text/plain + notify-send -i ebook-reader "OCR" "Saved to clipboard" + ;; esac