summaryrefslogtreecommitdiff
path: root/bang.sh
diff options
context:
space:
mode:
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"