aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/maimpick
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-11-29 23:45:51 +0300
committerawy <awy@awy.one>2025-11-29 23:45:51 +0300
commit8ead5031c753c1a071c2fc2cbd7b4c105e866c80 (patch)
treea312c8f47711f7fcdf100c5b49762c48d26ba974 /.local/bin/maimpick
parentf0618cb3bb5d1d75295483641fcdf2e1babaf4cf (diff)
downloadhyprdots-8ead5031c753c1a071c2fc2cbd7b4c105e866c80.tar.gz
w
Diffstat (limited to '.local/bin/maimpick')
-rwxr-xr-x.local/bin/maimpick2
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