dotfiles/dot_config/nerd-dictation/executable_run-dictation.sh

12 lines
415 B
Bash
Raw Normal View History

2023-09-20 11:34:52 +02:00
#!/bin/bash
set -e
if ! pgrep -f /usr/bin/nerd-dictation >/dev/null; then
notify-send "Hinweis" "Speech to Text wurde gestartet" -t 3000 -i /usr/share/icons/Arc/actions/symbolic/call-start-symbolic.svg
nerd-dictation begin --simulate-input-tool=YDOTOOL
else
nerd-dictation end
notify-send "Hinweis" "Speech to Text wurde beendet" -t 3000 -i /usr/share/icons/Arc/actions/symbolic/call-stop-symbolic.svg
fi