Skip to content

Instantly share code, notes, and snippets.

View marzeq's full-sized avatar

Antoni Marzec marzeq

View GitHub Profile
@CapMousse
CapMousse / ocr.sh
Created July 20, 2024 20:07
Screenshot OCR for text extraction on Hyprland
#!/bin/bash
# Dependencies: tesseract-ocr imagemagick wl-clipboard hyprshot
die(){
notify-send "$1"
exit 1
}
cleanup(){
[[ -n $1 ]] && rm -r "$1"
}