Files
dotfiles/projects/scripts/ocr.sh

10 lines
255 B
Bash
Executable File

#!/bin/bash
set -Eeuo pipefail
if ! pgrep -af owocr; then
notify-send "ocr.sh" "Starting owocr daemon..."
owocr -e meikiocr -r clipboard -w clipboard -l ja -n &>/dev/null &
fi
slurp | grim -g - | wl-copy
notify-send "ocr.sh" "Text: $DISPLAY_RES"