Use bin/sing instead of playing sounds directly

This commit is contained in:
Henrik Lissner 2017-12-08 12:41:30 -05:00
parent 476111f759
commit 431428d2ba
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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
{

View file

@ -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 ;;