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