X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fshh;h=7e82eba81ed90c29bcc4169d9b04a1195e3aaa09;hb=75f06ef1cd56d531eb9ae086618bce3ff6aaa510;hp=c020f98d5858d72ce5e7a12f1cbff13ace4710fa;hpb=b9581bfa0e37aafedf42ccbb1c514b572aa0d8d3;p=clearscm.git diff --git a/bin/shh b/bin/shh index c020f98..7e82eba 100755 --- a/bin/shh +++ b/bin/shh @@ -6,11 +6,15 @@ touchfile=/opt/clearscm/data/shh if [ -f $touchfile ]; then rm $touchfile cp ~/.icons/ShhOff.png ~/.icons/Shh.png - notify-send -t $timeout "Announcements turned on" else + # Stop currently playing audio + killall play + # Stop any Google TTS + kill -9 $(cat /tmp/simple_google_tts.pid) + # Clean up tmp + rm -rf /tmp/simple_google_tts.* + # Touch shh file touch $touchfile + # Change the icon cp ~/.icons/ShhOn.png ~/.icons/Shh.png - # Note that a -t 0 will keep the notification up. This way we can - # be visually reminded that we are not receiving audio announcements - notify-send -t 0 "Announcements turned off" fi