Peter Stuifzand

My new music player tool

Today I created a new music tool quiet like the Apple Shuffle. It will play music files randomly from my ‘collection’. Here follows the code.

#!/bin/sh
cd ~/music
find . -type f > playlist
mplayer -quiet -shuffle -playlist playlist | grep Playing

It can be started in it’s own terminal and be controlled with all the normal mplayer combinations. PgUp and PgDn will skip songs. Left and Right will skip in a song. + and - will change the volume. Q let’s you quit.

It’s a little crude at the edges, but it’s probably the best tool I’ve written in a while. No stuff that will keep you from getting your job done.

© 2023 Peter Stuifzand