mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-02-23 08:39:11 -05:00
162 current 2024-06-05 10:20:51 24.11.20240529.ad57eef 6.9.2-zen1 *
This commit is contained in:
parent
0bc4076eb3
commit
45ea4ccdfa
1 changed files with 8 additions and 0 deletions
|
@ -35,6 +35,8 @@ in
|
||||||
nodejs_22
|
nodejs_22
|
||||||
];
|
];
|
||||||
gui = with pkgs;[
|
gui = with pkgs;[
|
||||||
|
#OCR ENGINE
|
||||||
|
tesseract4
|
||||||
cpkg.discord
|
cpkg.discord
|
||||||
xsel
|
xsel
|
||||||
spotify
|
spotify
|
||||||
|
@ -121,6 +123,12 @@ in
|
||||||
set -e
|
set -e
|
||||||
python3 -c "print($*)"
|
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;[
|
wsl = with pkgs;[
|
||||||
wslu
|
wslu
|
||||||
|
|
Loading…
Add table
Reference in a new issue