Files
dotfiles/projects/scripts/ocr.sh
2025-12-20 00:42:46 -08:00

10 lines
257 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"