aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/transcribe.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/transcribe.sh b/.local/bin/transcribe.sh
new file mode 100755
index 0000000..da3fc85
--- /dev/null
+++ b/.local/bin/transcribe.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+tmp=`mktemp --suffix ".png"`
+
+grim -g "$(slurp -d)" "$tmp"
+if [ "$?" == "0" ]
+then
+ tesseract -l pol+eng $tmp - | wl-copy -n
+ notify-send "screentool" "Area transcribed!"
+fi
+rm $tmp