Removed ocrdesktop dependency. I38 now handles OCR with a much smaller, simpler and faster program.

This commit is contained in:
Storm Dragon
2025-05-12 06:07:03 -04:00
parent 09e21e297c
commit 65e6dcf980
4 changed files with 156 additions and 6 deletions

6
i38.sh
View File

@@ -576,10 +576,8 @@ bindsym $mod+Shift+BackSpace mode "default"
EOF
# ocrdesktop through speech-dispatcher
if command -v ocrdesktop &> /dev/null ; then
echo "bindsym ${mod}+F5 exec bash -c 'spd-say -Cw \"performing O C R\" && ocrdesktop -cnog | spd-say -e --'" >> ${i3Path}/config
fi
# ocr through speech-dispatcher
echo "bindsym ${mod}+F5 exec ${i3Path}/scripts/ocr.py" >> ${i3Path}/config
# Interrupt speech-dispatcher output
echo "bindsym ${mod}+Shift+F5 exec spd-say -C" >> ${i3Path}/config