Show errors from wayland-screenshot.sh on stderr
This commit is contained in:
parent
1d973ec606
commit
1d1e6469ba
@ -16,7 +16,7 @@ function copy_with_ocr() {
|
|||||||
local area="$(slurp 2>&1)"
|
local area="$(slurp 2>&1)"
|
||||||
if [[ "${area}" != 'selection cancelled' ]]; then
|
if [[ "${area}" != 'selection cancelled' ]]; then
|
||||||
local text="$(grim -g "${area}" -t png /dev/fd/1 |
|
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}"
|
wl-copy "${text}"
|
||||||
notify-send -t 5000 "Coppied Text" "Coppied ${#text} characters"
|
notify-send -t 5000 "Coppied Text" "Coppied ${#text} characters"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user