notification-sound.sh: use specific device for mpv

This commit is contained in:
dogeystamp 2022-10-01 18:56:52 -04:00
parent b375bf5dcc
commit 18bfd578fe
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -2,4 +2,8 @@
# Dunst notification sound script.
mpv ~/.local/bin/deskutils/notif.wav
if pactl list short sinks | grep -q virtual_mic; then
mpv ~/.local/bin/deskutils/notif.wav --audio-device=pulse/c1_out
else
mpv ~/.local/bin/deskutils/notif.wav
fi