diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-12 18:34:28 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-12 18:34:28 +0100 |
commit | 54dbc966d6a911dbb7bbd059f94f7e30c16e47bf (patch) | |
tree | c6a068dad02d0aac9de6f8540c1bfba7a52d0d6a /.local/bin/dunst_espeak.sh | |
parent | Notifications update (diff) | |
download | dotfiles-bsd-54dbc966d6a911dbb7bbd059f94f7e30c16e47bf.tar.gz dotfiles-bsd-54dbc966d6a911dbb7bbd059f94f7e30c16e47bf.tar.bz2 dotfiles-bsd-54dbc966d6a911dbb7bbd059f94f7e30c16e47bf.tar.xz dotfiles-bsd-54dbc966d6a911dbb7bbd059f94f7e30c16e47bf.tar.zst dotfiles-bsd-54dbc966d6a911dbb7bbd059f94f7e30c16e47bf.zip |
New espeak script for dunst
Diffstat (limited to '.local/bin/dunst_espeak.sh')
-rwxr-xr-x | .local/bin/dunst_espeak.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.local/bin/dunst_espeak.sh b/.local/bin/dunst_espeak.sh new file mode 100755 index 0000000..3d1aee1 --- /dev/null +++ b/.local/bin/dunst_espeak.sh @@ -0,0 +1,7 @@ +#!/usr/local/bin/dash + +[ "$5" = "LOW" ] && exit +echo $3 > $HOME/file +[ "$3" ] || exit +words=$(printf "$3" | sed 's/<b>//g' | sed 's/<\/b>//g' | sed 's/[^a-zA-Z0-9?!., ]//g') +espeak "$words" |