Xmms: Changing Play list Using Bash Script – Update And Play Our Collection
While listening to music, i usually change the play list on my Xmms player. Some time i do download of new songs and adding them to my collection have two music collection folders. One for English and other one for Malayalam. Each day i hear songs from both the collections (English, Malayalam). Normally it took little time to do loading and changing the play list. So i thought to write a script for changing the play list without much effort. The script is also capable of updating new songs from collection folder to their corresponding panelist.
Install Xmms Player
1. Set the yum repository with rpmforge-release
# cd /tmp
# wget http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
*Select rpmforge-release package according to the Linux OS version.
2. Install Xmms package using the yum
# yum install xmms-skins xmms xmms-mp3
# vi /usr/local/bin/xmmel
echo -e "Enter your choice,nFor English Press (e),nFor Malayalam Press (m),nFor Updation Press (u)"
if [ $language == e ]
killall -15 xmms
##Store location for English play list####
echo "Enjoy English Song"
elif [ $language == m ]
killall -15 xmms
##Store location for Malayalam play list####
$Xmas /media/zongs/playlist/malayalam.m3u &
echo "Enjoy Malayalam Song"
elif [ $language == u ]
##Updation from my music folders# > ##to there corresponding play list#
find /media/songs/English/ -name *.mp3 > /media/zongs/playlist/english.m3u
find /media/zongs/Malayalam/ -name *.mp3 > /media/zongs/playlist/malayalam.m3u
echo "Updation Completed"
echo "Wrong Choice"
# chomd a+x /usr/local/bin/xmmel
Enjoy the Script
Song selection press “e” for English, “m” for Malayalam and “u” for Updating the collection.
Latest posts by Melbin Mathew (see all)
- VMware virtual IDE to virtual SCSI hard disk conversion steps – Windows XP - August 6, 2015
- Stop Error “CRITICAL_STRUCTURE_CORRUPTION - August 5, 2015
- Error installing Windows server role and feature required for the Exchange 2010 - December 3, 2013