Added the screen OCR script
This commit is contained in:
1 file changed
+9
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
text=$(grim -g "$(slurp)" - | tesseract stdin stdout -l eng 2>/dev/null)
|
||||||
|
|
||||||
|
if [ -n "$text" ]; then
|
||||||
|
printf '%s' "$text" | wl-copy
|
||||||
|
notify-send "OCR" "Text copied to clipboard"
|
||||||
|
fi
|
||||||
|
|
||||||
Reference in new issue
Block a user