Skip to content

thinkocapo/bash-party

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

bash-party

πŸŽ‰ πŸ”‰ πŸ”Š [Music] πŸ”‰ πŸ”Š πŸŽ‰

Setup

  1. git clone [email protected]:thinkocapo/bash-party-scripting.git
  2. cd bash-party-scripting
  3. cp your_song.mp3 ./songs or use the 5-second audio file that's already there

Run

  1. ./bashparty.sh with 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 2

Troubleshooting

When 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.

About

πŸ”‰ πŸ”Š music.mp3's with ASCII art πŸ”‰ πŸ”Š

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages