From e32a3b6c1dc0a929e0ee140471b80465fe61167b Mon Sep 17 00:00:00 2001 From: seamus-knightly Date: Mon, 9 Nov 2026 15:02:13 +0000 Subject: [PATCH] Added the screen OCR script --- .scripts/ocr-screen.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .scripts/ocr-screen.sh diff --git a/.scripts/ocr-screen.sh b/.scripts/ocr-screen.sh new file mode 100755 index 0000000..c4c9be8 --- /dev/null +++ b/.scripts/ocr-screen.sh @@ -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 +