From 54dbc966d6a911dbb7bbd059f94f7e30c16e47bf Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 12 Nov 2020 18:34:28 +0100 Subject: New espeak script for dunst --- .local/bin/dunst_espeak.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 .local/bin/dunst_espeak.sh (limited to '.local/bin/dunst_espeak.sh') 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///g' | sed 's/<\/b>//g' | sed 's/[^a-zA-Z0-9?!., ]//g') +espeak "$words" -- cgit v1.2.3