summaryrefslogtreecommitdiff
path: root/bang.sh
diff options
context:
space:
mode:
authorAnton Bobov <abobov@gmail.com>2018-11-01 22:16:21 +0500
committerAnton Bobov <abobov@gmail.com>2018-11-01 22:16:21 +0500
commit2bf34f4efd5643b847170443ca9aa03dafed976c (patch)
treeed4f121a91f6a5f3214e4cea25c47475abd9e86d /bang.sh
parent88fcd4ab2ea43395da996ccfe067b3b5651eb458 (diff)
Update bin.
Diffstat (limited to 'bang.sh')
-rwxr-xr-xbang.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/bang.sh b/bang.sh
index 263c164..1d960d7 100755
--- a/bang.sh
+++ b/bang.sh
@@ -4,9 +4,5 @@ set -e
FILE=/usr/share/orage/sounds/Spo.wav
-if [ ! -f "$FILE" ] ; then
- echo "No sound file: $FILE"
- exit 1
-fi
-
-aplay --quiet "$FILE"
+which notify-send >/dev/null 2>&1 && notify-send "Task done"
+[ -f "$FILE" ] && aplay --quiet "$FILE"