Use bin/sing instead of playing sounds directly
This commit is contained in:
parent
476111f759
commit
431428d2ba
|
@ -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.
|
# 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"
|
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
|
||||||
|
|
|
@ -14,7 +14,7 @@ if [[ "$check" != "0" ]]; then
|
||||||
echo "%{F#b5bd68}${icon}$pac+$aur%{F-}"
|
echo "%{F#b5bd68}${icon}$pac+$aur%{F-}"
|
||||||
if [[ $last != "$pac$aur" ]]; then
|
if [[ $last != "$pac$aur" ]]; then
|
||||||
notify-send "$((pac+aur)) updates available"
|
notify-send "$((pac+aur)) updates available"
|
||||||
paplay $DOTFILES_ASSETS/sounds/updates.ogg &
|
ding updates
|
||||||
echo "$pac$aur" >/tmp/polybar-updates
|
echo "$pac$aur" >/tmp/polybar-updates
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
|
@ -15,7 +15,7 @@ ARCH=$DOTS/base/arch
|
||||||
[[ -e ~/wallpaper ]] && feh --no-fehbg --image-bg black --bg-center ~/wallpaper
|
[[ -e ~/wallpaper ]] && feh --no-fehbg --image-bg black --bg-center ~/wallpaper
|
||||||
|
|
||||||
# Let me know
|
# Let me know
|
||||||
paplay $DOTFILES_ASSETS/sounds/startup.ogg &
|
$DOTS/bin/ding startup
|
||||||
|
|
||||||
# autostart programs
|
# autostart programs
|
||||||
{
|
{
|
||||||
|
|
2
bin/ding
2
bin/ding
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
DEFAULT="$DOTFILES_ASSETS/sounds/${1:-ding.ogg}"
|
DEFAULT="$DOTFILES_ASSETS/sounds/${1:-ding}.ogg"
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
darwin*) afplay $DEFAULT ;;
|
darwin*) afplay $DEFAULT ;;
|
||||||
linux*) paplay $DEFAULT ;;
|
linux*) paplay $DEFAULT ;;
|
||||||
|
|
Loading…
Reference in a new issue