Moved scripts from /System/bin to /opt/clearscm/bin
[clearscm.git] / bin / shh
1 #!/bin/bash
2 timeout=5000 # 5 seconds
3
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"
9 else
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"
15 fi