summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2024-07-15 13:12:36 -0400
committerLuke Smith <luke@lukesmith.xyz>2024-07-15 13:12:36 -0400
commitdda032a37d654557fbf2542d8b0385ba79584a4b (patch)
tree76d998f49aafb203346a04acd1d6c6a02d734ad3
parente64728177bb6df268675c29a00abe56c3c435b12 (diff)
downloadeibhear-dda032a37d654557fbf2542d8b0385ba79584a4b.tar.gz
eibhear-dda032a37d654557fbf2542d8b0385ba79584a4b.tar.zst
eibhear-dda032a37d654557fbf2542d8b0385ba79584a4b.zip
close #1416
-rwxr-xr-x.local/bin/maimpick4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/maimpick b/.local/bin/maimpick
index ef0e3b7..67b9983 100755
--- a/.local/bin/maimpick
+++ b/.local/bin/maimpick
@@ -9,12 +9,12 @@ output="$(date '+%y%m%d-%H%M-%S').png"
xclip_cmd="xclip -sel clip -t image/png"
ocr_cmd="xclip -sel clip"
-case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\nOCR a selected area (copy)" | dmenu -l 7 -i -p "Screenshot which area?")" in
+case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (copy)\\ncurrent window (copy)\\nfull screen (copy)\\ncopy selected image to text" | dmenu -l 7 -i -p "Screenshot which area?")" in
"a selected area") maim -u -s pic-selected-"${output}" ;;
"current window") maim -B -q -d 0.2 -i "$(xdotool getactivewindow)" pic-window-"${output}" ;;
"full screen") maim -q -d 0.2 pic-full-"${output}" ;;
"a selected area (copy)") maim -u -s | ${xclip_cmd} ;;
"current window (copy)") maim -q -d 0.2 -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
"full screen (copy)") maim -q -d 0.2 | ${xclip_cmd} ;;
- "a selected area (OCR)") tmpfile=$(mktemp /tmp/ocr-XXXXXX.png) && maim -u -s > "$tmpfile" && tesseract "$tmpfile" - -l eng | ${ocr_cmd} && rm "$tmpfile" ;;
+ "copy selected image to text") tmpfile=$(mktemp /tmp/ocr-XXXXXX.png) && maim -u -s > "$tmpfile" && tesseract "$tmpfile" - -l eng | ${ocr_cmd} && rm "$tmpfile" ;;
esac