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