diff --git a/common/pkgs.nix b/common/pkgs.nix index fcf3f4f..5ce42ac 100644 --- a/common/pkgs.nix +++ b/common/pkgs.nix @@ -35,6 +35,8 @@ in nodejs_22 ]; gui = with pkgs;[ + #OCR ENGINE + tesseract4 cpkg.discord xsel spotify @@ -121,6 +123,12 @@ in set -e python3 -c "print($*)" '') + (pkgs.writeShellScriptBin "ocr" '' + set -euo pipefail + TEMP=$(mktemp) + flameshot -s -r gui > $TEMP + (tesseract $TEMP --oem 1 -l eng | copy )|| copy "OCR RETUNRED NON-ZERO" + '') ]; wsl = with pkgs;[ wslu