2 timeout=5000 # 5 seconds
4 # This just toggles the creation of the /opt/clearscm/bin/shh file
5 if [ -f /opt/clearscm/bin/shh ]; then
6 rm /opt/clearscm/bin/shh
7 cp ~/.icons/ShhOff.png ~/.icons/Shh.png
8 notify-send -t $timeout "Announcements turned on"
10 touch /opt/clearscm/bin/shh
11 cp ~/.icons/ShhOn.png ~/.icons/Shh.png
12 # Note that a -t 0 will keep the notification up. This way we can
13 # be visually reminded that we are not receiving audio announcements
14 notify-send -t 0 "Announcements turned off"