From 8ead5031c753c1a071c2fc2cbd7b4c105e866c80 Mon Sep 17 00:00:00 2001 From: awy Date: Sat, 29 Nov 2025 23:45:51 +0300 Subject: w --- .local/bin/maimpick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/maimpick b/.local/bin/maimpick index 2a71be3..5a8261b 100755 --- a/.local/bin/maimpick +++ b/.local/bin/maimpick @@ -33,5 +33,5 @@ case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area grim -g "$geometry" - | swappy -f - ;; "full screen (swappy)") geometry=$(slurp -o) && sleep 0.2 && grim -g "$geometry" - | swappy -f - ;; "copy selected image to text") tmpfile=$(mktemp /tmp/ocr-XXXXXX.png) && slurp | grim -g - - > "$tmpfile" && tesseract "$tmpfile" - -l eng | ${ocr_cmd} && rm "$tmpfile" && notify-send "📸 maimpick" "Detected text copied to clipboard.\n$(wl-paste)" ;; - *) notify-send "📸 maimpick" "Wrong option." + *) exit 0 esac -- cgit v1.2.3