Created
January 7, 2025 15:00
-
-
Save mistivia/4bdca34b7a2dd466e8c4f2ff284f482e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| lang=eng | |
| rm /tmp/scrtrans* | |
| shotgun -g $(slop) /tmp/scrtrans.png | |
| tesseract -l $lang /tmp/scrtrans.png /tmp/scrtrans | |
| cat /tmp/scrtrans.txt | tr '\n' ' ' > /tmp/scrtrans.txt.2 | |
| mv /tmp/scrtrans.txt.2 /tmp/scrtrans.txt | |
| cat /tmp/scrtrans.txt | python3 gemini-translate.py > /tmp/scrout.txt | |
| xfce4-terminal --geometry=80x12 -e 'less /tmp/scrout.txt' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment