diff options
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/maimpick | 2 |
1 files changed, 1 insertions, 1 deletions
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 |