diff --git a/wayland-screenshot.sh b/wayland-screenshot.sh index 6bb989d..77f5cca 100755 --- a/wayland-screenshot.sh +++ b/wayland-screenshot.sh @@ -16,7 +16,7 @@ function copy_with_ocr() { local area="$(slurp 2>&1)" if [[ "${area}" != 'selection cancelled' ]]; then local text="$(grim -g "${area}" -t png /dev/fd/1 | - tesseract stdin stdout -l ${1} 2>/dev/null)" + tesseract stdin stdout -l ${1})" wl-copy "${text}" notify-send -t 5000 "Coppied Text" "Coppied ${#text} characters" fi