X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fshh;h=c020f98d5858d72ce5e7a12f1cbff13ace4710fa;hb=ff80d5b8099e6a572b0c538c42ddf61b9c2f8714;hp=f70c361bc4c72b2113b9ba5f10029adf2f37048b;hpb=560c091996e7e2f3c2d1babb51c0e84f3afb95a6;p=clearscm.git diff --git a/bin/shh b/bin/shh index f70c361..c020f98 100755 --- a/bin/shh +++ b/bin/shh @@ -1,13 +1,14 @@ #!/bin/bash timeout=5000 # 5 seconds +touchfile=/opt/clearscm/data/shh # This just toggles the creation of the /opt/clearscm/bin/shh file -if [ -f /opt/clearscm/bin/shh ]; then - rm /opt/clearscm/bin/shh +if [ -f $touchfile ]; then + rm $touchfile cp ~/.icons/ShhOff.png ~/.icons/Shh.png notify-send -t $timeout "Announcements turned on" else - touch /opt/clearscm/bin/shh + touch $touchfile 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