π π π [Music] π π π
git clone [email protected]:thinkocapo/bash-party-scripting.gitcd bash-party-scriptingcp your_song.mp3 ./songsor use the 5-second audio file that's already there
./bashparty.shwith the following options:
# plays first song in the songs directory
./bashparty.sh
# adds color
./bashparty.sh --color
# plays random song from ./songs
./bashparty.sh --random
# plays 3rd song from ./songs [0,1,2]
./bashparty.sh --index 2When I was developing this the song got stuck running once.
ps aux | grep '<part_of_song_mp3_name>'
kill <pid>Debugging a script
set -x
...
set +x
Mac comes with afplay for linux you'll need something different.
