From 431428d2ba2fb7507e786b648db8e80cf0b95ec9 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 8 Dec 2017 12:41:30 -0500 Subject: [PATCH] Use bin/sing instead of playing sounds directly --- base/arch/bin/notify-mount | 4 ++-- base/arch/config/polybar/modules/updates | 2 +- base/arch/xprofile | 2 +- bin/ding | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base/arch/bin/notify-mount b/base/arch/bin/notify-mount index 60989910..87796f45 100755 --- a/base/arch/bin/notify-mount +++ b/base/arch/bin/notify-mount @@ -1,5 +1,5 @@ -#!/usr/bin/env bash +#!/usr/bin/env zsh # A script run by devmon/udevil when a device is mounted or unmounted, notifying me. DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -a "devmon" "Device change" "$2" -aplay -N -q /usr/share/sounds/ding.wav & +ding diff --git a/base/arch/config/polybar/modules/updates b/base/arch/config/polybar/modules/updates index db26ff4a..0af0a3f9 100755 --- a/base/arch/config/polybar/modules/updates +++ b/base/arch/config/polybar/modules/updates @@ -14,7 +14,7 @@ if [[ "$check" != "0" ]]; then echo "%{F#b5bd68}${icon}$pac+$aur%{F-}" if [[ $last != "$pac$aur" ]]; then notify-send "$((pac+aur)) updates available" - paplay $DOTFILES_ASSETS/sounds/updates.ogg & + ding updates echo "$pac$aur" >/tmp/polybar-updates fi else diff --git a/base/arch/xprofile b/base/arch/xprofile index 7c5f50d1..af2c1b0c 100644 --- a/base/arch/xprofile +++ b/base/arch/xprofile @@ -15,7 +15,7 @@ ARCH=$DOTS/base/arch [[ -e ~/wallpaper ]] && feh --no-fehbg --image-bg black --bg-center ~/wallpaper # Let me know -paplay $DOTFILES_ASSETS/sounds/startup.ogg & +$DOTS/bin/ding startup # autostart programs { diff --git a/bin/ding b/bin/ding index 61bb9ad5..b8edb898 100755 --- a/bin/ding +++ b/bin/ding @@ -1,5 +1,5 @@ #!/usr/bin/env zsh -DEFAULT="$DOTFILES_ASSETS/sounds/${1:-ding.ogg}" +DEFAULT="$DOTFILES_ASSETS/sounds/${1:-ding}.ogg" case $OSTYPE in darwin*) afplay $DEFAULT ;; linux*) paplay $DEFAULT ;;