OCR through speech-dispatcher added. Interrupt speech-dispatcher key added.

This commit is contained in:
Storm Dragon 2024-08-13 00:37:39 -04:00
parent 6cf1aac9de
commit 31c920de8a

7
i38.sh
View File

@ -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