From 31c920de8a3e14b920dd9e95a40d9c52e28b9719 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 13 Aug 2024 00:37:39 -0400 Subject: [PATCH] OCR through speech-dispatcher added. Interrupt speech-dispatcher key added. --- i38.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/i38.sh b/i38.sh index 61d101d..8ae06ba 100755 --- a/i38.sh +++ b/i38.sh @@ -533,6 +533,13 @@ 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 \"performing O C R\" && ocrdesktop -cno | spd-say -e --'" >> ${i3Path}/config +fi +# Interrupt speech-dispatcher output +echo "bindsym ${mod}+Shift+F5 exec spd-say -C" >> ${i3Path}/config + # Multiple keyboard layouts if requested. if [[ ${#kbd[@]} -gt 1 ]]; then echo "bindsym Mod4+space exec ${i3Path}/scripts/keyboard.sh cycle ${kbd[@]}" >> ${i3Path}/config