diff options
author | zachir <zachir@librem.one> | 2023-02-24 10:31:07 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-02-24 10:31:07 -0600 |
commit | b8400bab1a7e8793dcf0cebd7936b5dd64f7c492 (patch) | |
tree | 905c3f1b5a29c48c374c1b4c9720a0d70a9a6c7f /notify-sound.sh | |
parent | 45fcc996ee082b40ad9200b7266fe2253c9f874d (diff) |
set notify sound to .wav, and play when turning sound on
Diffstat (limited to 'notify-sound.sh')
-rwxr-xr-x | notify-sound.sh | 3 |
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 |