From b8400bab1a7e8793dcf0cebd7936b5dd64f7c492 Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 24 Feb 2023 10:31:07 -0600 Subject: set notify sound to .wav, and play when turning sound on --- notify-sound.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'notify-sound.sh') 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 -- cgit v1.2.3