mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 02:04:21 +02:00
screenshot: also add OCR
This commit is contained in:
parent
08ac5f514b
commit
d5b99dc020
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue