Terminalen lämpar sig väl för mycket, så varför inte även för att lyssna på radio?
Skrev ihop ett snabbt script för de kanaler jag personligen kan tänkas vara intresserad av. Förhoppningsvis är det inte alltför svårt att modifiera det till eget tycke.
#!/bin/sh #Preferred player and options PLAYER="mplayer -really-quiet" if [ -n "$1" ]; then DI_FM_GENRE="$1" $PLAYER http://www.di.fm/mp3/$DI_FM_GENRE.pls fi #CHANNELS DI_PSY=http://www.di.fm/mp3/goapsy.pls DI_HS=http://www.di.fm/mp3/hardstyle.pls DI_HC=http://www.di.fm/mp3/hardcore.pls DI_BREAKS=http://www.di.fm/mp3/breaks.pls SKY_RAP=http://www.sky.fm/mp3/classicrap.pls P1=mms://wm-live.sr.se/SR-P1-High P2=mms://wm-live.sr.se/SR-P2-High P3=mms://wm-live.sr.se/SR-P3-High P4=mms://wm-live.sr.se/SR-Radiosporten-High P3_DIN_GATA=mms://wm-live.sr.se/sr-dingata-high P3_STREET=mms://wm-live.sr.se/SR-P3Street-High FAVORITER=mmsh://lugna.str.mtgradio.dgcsystems.net/lugna/?MSWMExt=.asf MEGAPOL=mms://live.alleredge.com/AE_MixMegapol_Mid RADIOSEVEN=http://www.radioseven.se/128.pls VOICE=mms://live.alleredge.com/AE_TheVoiceSE_Mid echo -e "33[1m 0 -> Help33[0m" echo ' 1 -> di.fm | goa/psy 2 -> di.fm | hardstyle 3 -> di.fm | hardcore 4 -> di.fm | breaks -------------------------- 5 -> sky.fm | classic rap -------------------------- 6 -> SR | P1 7 -> SR | P2 8 -> SR | P3 9 -> SR | P4 -------------------------- 10 -> SR | Din Gata 11 -> SR | Street -------------------------- 12 -> Lugna Favoriter 13 -> Mix Megapol 14 -> Radioseven 15 -> The Voice --- What do you want to listen to today?' read station if [ "$station" = "1" ]; then $PLAYER "$DI_PSY" elif [ "$station" = "2" ]; then $PLAYER "$DI_HS" elif [ "$station" = "3" ]; then $PLAYER "$DI_HC" elif [ "$station" = "4" ]; then $PLAYER "$DI_BREAKS" elif [ "$station" = "5" ]; then $PLAYER "$SKY_RAP" elif [ "$station" = "6" ]; then $PLAYER "$P1" elif [ "$station" = "7" ]; then $PLAYER "$P2" elif [ "$station" = "8" ]; then $PLAYER "$P3" elif [ "$station" = "9" ]; then $PLAYER "$P4" elif [ "$station" = "10" ]; then $PLAYER "$P3_DIN_GATA" elif [ "$station" = "11" ]; then $PLAYER "$P3_STREET" elif [ "$station" = "12" ]; then $PLAYER "$FAVORITER" elif [ "$station" = "13" ]; then $PLAYER "$MEGAPOL" elif [ "$station" = "14" ]; then $PLAYER "$RADIOSEVEN" elif [ "$station" = "15" ]; then $PLAYER "$VOICE" elif [ "$station" = "0" ]; then echo ' Usage: Pick the station you want. For di.fm, you can specify genre as an argument; radio <genre> Example: radio house' else echo 'You suck.' fi
