From ee294166fdb4a1f2c878e0433702e0f60243e109 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Wed, 27 Oct 2021 23:13:11 +0200 Subject: [PATCH] add cleanup --- screen_to_text.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/screen_to_text.sh b/screen_to_text.sh index 0851389..697220b 100644 --- a/screen_to_text.sh +++ b/screen_to_text.sh @@ -14,3 +14,4 @@ TESS_LANG='fra+eng+osd' file='/tmp/img_'`head --bytes=20 /dev/urandom | md5sum | head --bytes=20`'.png' /sbin/spectacle --region --background --nonotify --output "$file" /sbin/tesseract "$file" - -l "$TESS_LANG" | /sbin/xclip -in -selection clipboard +rm "$file"