summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-24 10:31:07 -0600
committerzachir <zachir@librem.one>2023-02-24 10:31:07 -0600
commitb8400bab1a7e8793dcf0cebd7936b5dd64f7c492 (patch)
tree905c3f1b5a29c48c374c1b4c9720a0d70a9a6c7f
parent45fcc996ee082b40ad9200b7266fe2253c9f874d (diff)
set notify sound to .wav, and play when turning sound on
-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