Home > bash > A simple command-line media player

A simple command-line media player


You have a folder on your hard drive where you store your MP3s. You would like to play these songs in a random order from the command-line with a simple command.


I have an alarm script with the exact same function; available here. Just modify the configuration part in the header to point to your MP3 folder; then launch it like this:

./alarm.py -p

Where -p stands for “play”. The script requires mplayer.

Categories: bash Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: