mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 01:03:35 +01:00
23 lines
469 B
Bash
Executable file
23 lines
469 B
Bash
Executable file
#!/bin/bash
|
|
# Listen to a jamendo stream
|
|
|
|
MPLAYER='mplayer'
|
|
URL='http://streaming.radionomy.com/Jam'
|
|
# Stream can be: Rock, Electro, Pop, Jazz, Lounge, Classical, Relaxation, Folk, Metal, Indie, HipHop, Country
|
|
|
|
STREAMS="Rock Electro Pop Jazz Lounge Classical Relaxation Folk Metal Indie HipHop Country"
|
|
|
|
if [ -z $1 ]
|
|
then
|
|
echo "What do you want to listen to:"
|
|
select STREAM in $STREAMS;
|
|
do
|
|
STREAM=$STREAM
|
|
break
|
|
done
|
|
else
|
|
STREAM=$1
|
|
fi
|
|
|
|
|
|
$MPLAYER "$URL$STREAM"
|