summaryrefslogtreecommitdiff
path: root/ocr
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2024-11-15 10:13:19 +0100
committernavewindre <boneyaard@gmail.com>2024-11-15 10:13:19 +0100
commit3e5011cc5eb8331206bd15977c3c5b7cb37fb28f (patch)
tree7d26ca5707a413a96f58c4d26bfbf845e273c27f /ocr
parent089488fca436b7df44b33784cdb0343b01fc67ff (diff)
asdf
Diffstat (limited to 'ocr')
-rwxr-xr-xocr7
1 files changed, 7 insertions, 0 deletions
diff --git a/ocr b/ocr
new file mode 100755
index 0000000..eb1d096
--- /dev/null
+++ b/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
+