Show errors from wayland-screenshot.sh on stderr

This commit is contained in:
Alexander Rosenberg 2024-06-22 14:12:19 -07:00
parent 1d973ec606
commit 1d1e6469ba
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -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