summaryrefslogtreecommitdiff
path: root/notify-sound.sh
diff options
context:
space:
mode:
Diffstat (limited to 'notify-sound.sh')
-rwxr-xr-xnotify-sound.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/notify-sound.sh b/notify-sound.sh
index 84170d2..a524a5a 100755
--- a/notify-sound.sh
+++ b/notify-sound.sh
@@ -4,12 +4,13 @@ case "$1" in
"on")
rm -rf "$SILENT_FILE"
notify-send "Notification sound on"
+ [ ! -f "$SILENT_FILE" ] && paplay ~/.local/share/sounds/notification.wav
;;
"off")
touch "$SILENT_FILE"
notify-send "Notification sound off"
;;
*)
- [ ! -f "$SILENT_FILE" ] && paplay ~/.local/share/sounds/notification.flac
+ [ ! -f "$SILENT_FILE" ] && paplay ~/.local/share/sounds/notification.wav
;;
esac