updated for pipewire with pw-cat
authorChris Koeritz <fred@gruntose.com>
Thu, 18 Jan 2024 04:45:58 +0000 (23:45 -0500)
committerChris Koeritz <fred@gruntose.com>
Thu, 18 Jan 2024 04:45:58 +0000 (23:45 -0500)
getting this into dev after erroneously adding change directly to main branch

scripts/multimedia/sound_play.sh

index 66b859f9f41397e5fae8da56d78810b4b0c3e0af..a934799813bfd92b855ead0cc2b3a1398b5d4404 100644 (file)
@@ -29,6 +29,8 @@ elif [ ! -z "$(psfind esd)" ]; then
 elif [ ! -z "$(psfind pulseaudio)" ]; then
 #echo we see pulse running...
   BASIC_PLAY_CMD="padsp aplay"
+elif [ ! -z "$(whichable pw-cat)" ]; then
+  BASIC_PLAY_CMD="pw-cat -p"
 else
   echo "I don't know how to play basic sound files for this OS and sound system."
 fi