Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Created March 31, 2014 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notpushkin/9901083 to your computer and use it in GitHub Desktop.
Save notpushkin/9901083 to your computer and use it in GitHub Desktop.
The thing I use to listen to music now
#!/bin/bash
MP3DIR="$HOME/music/"
PLAYLIST_FILE="${mktemp}"
find $MP3DIR -name "*.mp3" -print | shuf > "$PLAYLIST_FILE"
exec < "$PLAYLIST_FILE"
while read file
do
ffplay "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment