mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-25 18:05:23 -08:00
update to owocr and meikiocr
This commit is contained in:
@@ -1,17 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
# RES="$(slurp | grim -g - - | gazou | sed '1d;$d')"
|
if ! pgrep -af owocr; then
|
||||||
# # Truncate RES for display if it's longer than 100 characters
|
notify-send "ocr.sh" "Starting owocr daemon..."
|
||||||
# DISPLAY_RES="${RES:0:100}"
|
owocr -e meikiocr -r clipboard -w clipboard -l ja -n &>/dev/null &
|
||||||
# if [ ${#RES} -gt 100 ]; then
|
fi
|
||||||
# DISPLAY_RES="${DISPLAY_RES}..."
|
|
||||||
# fi
|
|
||||||
# notify-send "GAZOU" "Text: $DISPLAY_RES"
|
|
||||||
# echo "$RES" | wl-copy
|
|
||||||
|
|
||||||
# grim -g "$(slurp)" /tmp/ocr.png || exit 1
|
|
||||||
# slurp | grim -g - /tmp/ocr/ocr.png || exit 1
|
|
||||||
owocr -r clipboard -w clipboard -of text -n || exit 1
|
|
||||||
slurp | grim -g - | wl-copy
|
slurp | grim -g - | wl-copy
|
||||||
notify-send "ocr.sh" "Text: $DISPLAY_RES"
|
notify-send "ocr.sh" "Text: $DISPLAY_RES"
|
||||||
|
|||||||
Reference in New Issue
Block a user