summaryrefslogtreecommitdiff
path: root/bin/ocr
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-07-13 01:45:05 +0200
committernavewindre <boneyaard@gmail.com>2025-07-13 01:45:05 +0200
commitd49e4b0a25c7cc75ade210c7092eea8feb75e692 (patch)
tree2a38c3846dee25d0d83c820de6bade62f54db90f /bin/ocr
parent1fe841b80b6284737661870c87abbc26ecba4109 (diff)
restructure
Diffstat (limited to 'bin/ocr')
-rwxr-xr-xbin/ocr7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ocr b/bin/ocr
new file mode 100755
index 0000000..eb1d096
--- /dev/null
+++ b/bin/ocr
@@ -0,0 +1,7 @@
+#!/bin/bash
+READ=$(scrot -s 'temp_%Y%m%d_%H%M%S.png' -e 'tesseract $f stdout -l jpn && rm $f')
+
+if [[ ! -z $READ ]]; then
+ echo $READ | xclip -selection clipboard
+fi
+