Added the screen OCR script

This commit is contained in:
seamus-knightly committed 2026-11-09 15:02:13 +00:00
1 parent 1c5064240e
commit e32a3b6c1d
1 file changed
+9
+9
View File
@@ -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