This commit is contained in:
2026-06-03 21:32:45 +02:00
parent f2328ff319
commit 1e869b49c7
126 changed files with 41986 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Captura con hyprshot (selección de región) y envía imagen RAW a stdout
ocr_text=$(hyprshot -m region -z -r -s | tesseract -l eng - - 2>/dev/null)
# Comprueba si Tesseract devolvió algo
if [[ -n "$ocr_text" ]]; then
# Copia el texto reconocido al portapapeles
echo -n "$ocr_text" | wl-copy
notify-send -a "Ax-Shell" "OCR Success" "Text Copied to Clipboard"
else
notify-send -a "Ax-Shell" "OCR Failed" "No text recognized or operation failed"
fi