ector
April 14, 2019, 4:07pm
#1
Hi,i have this script radio,taken from bunselabs, the radio works and the stations too, only when I start the radio in the polybar no module works anymore, someone knows why, what am I doing wrong?
thank for help
modules
[module/radio]
type = custom/script
interval = 5
label = "%{A1:$HOME/.config/polybar/scripts/pmrp2:} %{A3:$HOME/.config/polybar/scripts/pmrp2:} %output% %{A} %{A}"
exec = echo ""
format = <label>
format-background = #0d000000
script radio prmp2
#!/bin/bash
command -v mpv >/dev/null 2>&1 || (yad --text="PMRP requires 'mpv' but it's not installed!\nInstall 'mpv' to enjoy PMRP."; exit 1)
TEXTDOMAIN=ydesk
TEXTDOMAINDIR=/usr/share/locale
LANG=C.UTF-8
export APP_NAME="Nobel's Radio Player"
export pmrp='@bash -c "run_stations %2"'
export pmrp_stations="$HOME/.config/NobelsRadioPlayer/stations"
# Declare default status
export STATUS="Playing"
export fpipe=$(mktemp -u --tmpdir pmrp.XXXXXXXX)
export ppipe=$(mktemp -u --tmpdir ppmrp.XXXXXXXX)
export cpipe=$(mktemp -u --tmpdir cpmrp.XXXXXXXX)
export statuspipe=$(mktemp -u --tmpdir cpmrp.XXXXXXXX)
export nobelnotification=$(mktemp -u --tmpdir notifpmrp.XXXXXXXX)
export PMRPLIST=$(mktemp -u --tmpdir PMRPLIST.XXXXXXXX)
# Pipe for setting values in the form tab
mkfifo "$fpipe"
# control pipe - send commands to mpv
mkfifo "$cpipe"
# status pipe - send text to left text pane
mkfifo "$statuspipe"
# Pipe for notification icon
mkfifo "$nobelnotification"
# Create the list file
> $PMRPLIST
#File to store default category
export CAT_FILE=$(mktemp -u --tmpdir pmrpcat.XXXXXXXX)
> $CAT_FILE
trap "rm -f $fpipe $ppipe $cpipe $statuspipe $nobelnotification $PMRPLIST $CAT_FILE" EXIT
pmkey=$(($RANDOM * $$))
# Categories are defined with "## Station_name"
# Categories are separated with "!\n" (without quotes)
# Note: without trailing newline yad won't restore categories when reopened from tray
# The last item in category is without trailing "!"
Categories="$(awk '/^##.*/{if ($2=="Stations"){$2=""}else{printf "%s%s",sep,$2; sep="!\n"}} END{print ""}' $pmrp_stations)"
function stations
{
if [[ "$1" != "$CAT_DEFAULT" ]]; then
echo "Category: $1" >> "$ppipe"
fi
< "$pmrp_stations" sed -n -e 's/^.*'"$1: "'//p' \
| sed -e $'s/\" \"/\\\n/g;s/\"//g' >> "$fpipe"
}
export -f stations
function run_stations
{
echo "3:@disabled@"
echo -e '\f' >> "$fpipe"
echo "$1" > "$CAT_FILE"
stations "$1"
echo "3:$pmrp"
}
export -f run_stations
function load_url
{
LANG=C.UTF-8
status_block "$APP_NAME: Loading...\n\n $1"
echo "Station: $1 Url: $3" >> $ppipe
# Station to the list
echo "$3" > $PMRPLIST
# Unload current Playlist
echo "playlist_remove current" > $cpipe
# Load list
echo "loadlist $PMRPLIST" > $cpipe
}
export -f load_url
function status_block
{
LANG=C.UTF-8
if [[ ! -z "$PMRP" ]]; then
unset PMRP
else
if [[ "$(echo "$1" | grep -c "^Name*")" = 1 ]]; then
STATION="$1"
elif [[ "$(echo "$1" | grep -c "^Title*")" = 1 ]];then
TITLE="$1"
date +"Time: %T" >> $ppipe
elif [[ "$(echo "$1" | grep -c "^Bitrate")" = 1 ]];then
BITRATE="$1 Kb/s"
elif [[ "$(echo "$1" | grep -c "^Url*")" = 1 ]];then
URL="$1"
elif [[ "$(echo "$1" | grep -c "^$APP_NAME:*")" = 1 ]];then
PMRP="${1/#$APP_NAME:/}"
fi
set_notification "${1}"
if [[ -z "$PMRP" ]]; then
printf "%s\n" "$STATION\n$URL\n$BITRATE\n$TITLE\n$STATUS" >> "$statuspipe"
echo "tooltip:<b>${STATION/#Name /Station : }\n<big>${TITLE/#Title /Track : }</big></b>" | sed "s/\&/\&/g" >> $nobelnotification
else
echo "\n$PMRP\n" >> "$statuspipe"
fi
CAT_DEFAULT="$(cat $CAT_FILE)"
if [[ "$CAT_DEFAULT" == "" ]]; then
CAT_DEFAULT="181.FM"
fi
echo "$(for category in $Categories
do
if [[ "$category" == "$CAT_DEFAULT" ]]; then
printf "^%s" "$CAT_DEFAULT"
elif [[ "$category" != "$CAT_DEFAULT!" ]]; then
printf "%s" "$category"
else
printf "^%s!" "$CAT_DEFAULT"
fi
done
)" >> "$statuspipe"
# Load stations
echo "$pmrp" >> "$statuspipe"
fi
}
export -f status_block
function set_notification
{
LANG=C.UTF-8
if [[ "${1/#ANS_core-idle=/}" == "yes" ]];then
STATUS="Paused"
echo "icon:gtk-cancel" >> $nobelnotification
elif [[ "${1/#ANS_core-idle=/}" == "no" ]];then
STATUS="Playing"
echo "icon:play" >> $nobelnotification
elif [[ "${1}" == "Stop" ]];then
export STATUS=" ${1}"
echo "tooltip:Nobel's Radio Player" | sed "s/\&/\&/g" >> $nobelnotification
echo "icon:gtk-delete" >> $nobelnotification
fi
# Sets the right-click menu
echo "menu:$STATUS - Pause/Play!bash -c 'echo cycle pause >> $cpipe && echo \"get_property core-idle\" > $cpipe && set_notification'!gtk-ok|Stop!bash -c 'echo stop >> $cpipe && status_block "Stop" && set_notification'!stop|Close tray!quit!gtk-close" >> $nobelnotification
}
export -f set_notification
exec 3<> $fpipe
exec 4<> $ppipe
exec 5<> $cpipe
exec 6<> $statuspipe
exec 7<> $nobelnotification
killall mpv 2>/dev/null
mpv --no-ytdl --playlist=$PMRPLIST --input-file=$cpipe --no-video --cache 786 --no-config --term-playing-msg='print_text ${metadata}' --idle=yes 2>&1 \
| awk '/[statusline]/{if ($0 ~ "icy-br:*") {gsub(/^.*icy-br:/,"");print "Bitrate ", $0 ;}
else {if ($0 ~ "icy-name:*") {gsub(/^.*icy-name:/,"");print "Name ", $0;}
else {if ($0 ~ "icy-url:*") {gsub(/^.*icy-url:/,"");print "Url ", $0;}
else {if ($0 ~ "icy-genre:*") {gsub(/^.*icy-genre:/,"");print "Genre -", $0;}
else {if ($0 ~ "icy-title:*") {gsub(/^.*icy-title:/,"");print "Title ", $0;}
else {if ($0 ~ "ANS_core-idle*"){print $0;}}}}}}}
{fflush(stdout)}' | while read -r line; do status_block "$line"; echo "$line" >>"$ppipe"; done &
function main() {
# loads fields on startup
ascii_art='\t ♫ ♪ ılıll|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅|llılı ♪ ♫\n\n\t \\ (•◡•) / <--- misko'
status_block "$APP_NAME: $APP_NAME: Ready to Play \n Licence: GNU PUPBLIC LICENCE Version 3\n\n$ascii_art\n\n\n\n Select a Category and click to Load Stations"
yad --plug="$pmkey" --tabnum=1 --form --cycle-read --field "":TXT --field "Category":CB \
--image-ontop --field="Load Stations!gtk-add:fbtn" <&6 &
yad --plug="$pmkey" --tabnum=2 --list --no-markup --dclick-action='bash -c "load_url %s && echo \"add track-list/0/selected yes\" >> $cpipe"' --select-action='bash -c "load_url %s && echo \"get_property track-list/0/selected\" >> $cpipe"' \
--text "Select to play" --text-align=center --column="Name" --column="Category" --column="Url" \
--search-column=1 --expand-column=1 --print-column="3" <&3 &
# comment out next line if you want to start with log
# tail -f "$ppipe" | yad --text-info --title="$APP_NAME-Log" --tail --window-icon=radio --width=600 --height=500 --button="gtk-close" &
# Reprints metadata after returning from tray
echo 'print_text ${metadata}' > $cpipe
yad --paned --key="$pmkey" --button="Close to Tray!gtk-close":1 \
--button="Show Log":'bash -c "tail -f -n +1 $ppipe | yad --text-info --tail --title=$APP_NAME-Log --window-icon=accessories-notes --width=600 --height=500 --button=gtk-close" &' \
--button="Pause/Play":'bash -c "echo cycle pause >> $cpipe && echo \"get_property core-idle\" > $cpipe"' \
--button="Stop":'bash -c "echo stop >> $cpipe && status_block \"Stop\" "' --text=" Nobel's Radio Player\n*no bells, no whistles*" --width=700 --height=500 \
--title=$"$APP_NAME" --splitter=300 --window-icon="radio" --orient=hor --image=radio --image-on-top --posx=10 --posy=100
RET="$?"
case $RET in
252)
echo "quit" >> $cpipe
;;
1) yad --notification --command="quit" \
--image="radio" \
--listen <&7 & notifpid=$!
set_notification
# Waits for notification to exit
wait $notifpid
# Need to do this after returned from tray
status_block ""
run_stations "$(cat $CAT_FILE)" &>/dev/null
main
;;
*) exit 1
;;
esac
}
main
exec 3>&-
exec 4>&-
exec 5>&-
exec 6>&-
exec 7>&-
2 Likes
altman
April 14, 2019, 4:08pm
#2
Thx for sharing @ector . Might be helpful to other members !
1 Like
ector
April 14, 2019, 4:14pm
#3
Once you have set up the radio station you want to use it, I put it in the /NobelsRadioPlayer/ folder in:
$ HOME / .config / NobelsRadioPlayer / stations "
## Stations
# Tag: "Name" "Category" "URL"
## 181.FM
181.FM: "Jammin 181" "Urban" "http://relay.181.fm:8042"
181.FM: "Old School HipHop" "Urban" "http://relay.181.fm:8068"
181.FM: "The Beat" "Urban" "http://relay.181.fm:8054"
181.FM: "The Box" "Urban" "http://relay.181.fm:8024"
181.FM: "True R&B" "Urban" "http://relay.181.fm:8022"
181.FM: "Chilled Out" "Techno" "http://relay.181.fm:8700"
181.FM: "Energy 93" "Techno" "http://relay.181.fm:8044"
181.FM: "Energy 98" "Techno" "http://relay.181.fm:8800"
181.FM: "Studio 181" "Techno" "http://relay.181.fm:8072"
181.FM: "Techno Club" "Techno" "http://icyrelay.181.fm/181-technoclub_128k.mp3"
181.FM: "The Vibe of Vegas" "Techno" "http://relay.181.fm:8074"
181.FM: "80's Hairband" "Rock" "http://relay.181.fm:8014"
181.FM: "Chloe" "Rock" "http://relay.181.fm:8100"
181.FM: "Classic Buzz" "Rock" "http://relay.181.fm:8038"
181.FM: "Rock 181" "Rock" "http://relay.181.fm:8008"
181.FM: "Rock 40" "Rock" "http://relay.181.fm:8028"
181.FM: "The Buzz" "Rock" "http://relay.181.fm:8126"
181.FM: "The Eagle" "Rock" "http://relay.181.fm:8030"
181.FM: "The Rock" "Rock" "http://relay.181.fm:8064"
181.FM: "Party 181" "Pop" "http://relay.181.fm:8036"
181.FM: "Power 181" "Pop" "http://relay.181.fm:8128"
181.FM: "Smooth AC" "Pop" "http://relay.181.fm:8094"
181.FM: "The Heart" "Pop" "http://relay.181.fm:8006"
181.FM: "The Mix" "Pop" "http://relay.181.fm:8032"
181.FM: "The Office" "Pop" "http://relay.181.fm:8002"
181.FM: "The Point" "Pop" "http://relay.181.fm:8010"
181.FM: "UK Top 40" "Pop" "http://relay.181.fm:8070"
181.FM: "Beatles" "Oldies" "http://relay.181.fm:8062"
181.FM: "Classic Hits" "Oldies" "http://relay.181.fm:8132"
181.FM: "Good Time Oldies" "Oldies" "http://relay.181.fm:8046"
181.FM: "Mellow Gold" "Oldies" "http://relay.181.fm:8060"
181.FM: "Soul" "Oldies" "http://relay.181.fm:8058"
181.FM: "Super 70s" "Oldies" "http://relay.181.fm:8066"
181.FM: "Reggae Roots" "Latin" "http://relay.181.fm:8096"
181.FM: "Salsa" "Latin" "http://relay.181.fm:8098"
181.FM: "Acid Jazz" "Easy" "http://icyrelay.181.fm/181-acidjazz_128k.mp3"
181.FM: "Bebop" "Easy" "http://icyrelay.181.fm/181-bebop_128k.mp3"
181.FM: "Classical Guitar" "Easy" "http://icyrelay.181.fm/181-classicalguitar_128k.mp3"
181.FM: "Classical Jazz" "Easy" "http://icyrelay.181.fm/181-classicaljazz_128k.mp3"
181.FM: "Classical Music" "Easy" "http://icyrelay.181.fm/181-classical_128k.mp3"
181.FM: "Fusion Jazz" "Easy" "http://icyrelay.181.fm/181-fusionjazz_128k.mp3"
181.FM: "Sensual World" "Easy" "http://icyrelay.181.fm/181-sensual_128k.mp3"
181.FM: "The Breeze" "Easy" "http://relay.181.fm:8004"
181.FM: "Trance Jazz" "Easy" "http://icyrelay.181.fm/181-trancejazz_128k.mp3"
181.FM: "True Blues" "Easy" "http://icyrelay.181.fm/181-blues_128k.mp3"
181.FM: "Vocal Jazz" "Easy" "http://icyrelay.181.fm/181-vocals_128k.mp3"
181.FM: "Front Porch" "Country" "http://relay.181.fm:8016"
181.FM: "Highway 181" "Country" "http://relay.181.fm:8018"
181.FM: "Kickin' Country" "Country" "http://relay.181.fm:8130"
181.FM: "Real Country" "Country" "http://relay.181.fm:8034"
181.FM: "US 181" "Country" "http://relay.181.fm:8056"
181.FM: "Comedy Club" "Comedy" "http://relay.181.fm:8026"
181.FM: "90's Alternative" "90s" "http://relay.181.fm:8052"
181.FM: "90's Country" "90s" "http://relay.181.fm:8050"
181.FM: "90's Dance" "90s" "http://relay.181.fm:8140"
181.FM: "Lite 90's" "90s" "http://relay.181.fm:8048"
181.FM: "Star 90's" "90s" "http://relay.181.fm:8012"
181.FM: "80's Country" "80s" "http://relay.181.fm:8134"
181.FM: "Awesome 80's" "80s" "http://relay.181.fm:8000"
181.FM: "Lite 80's" "80s" "http://relay.181.fm:8040"
## Blues
Blues: "12 Bar" "Blues" "http://streaming.radionomy.com:80/12Bar"
Blues: "A Better Classic Blues Vintage Station" "Blues" "http://streaming.radionomy.com/A-Better-Classic-Blues-Vintage-Station"
Blues: "A Blues Dream" "Blues" "http://streaming.radionomy.com/ABLUESDREAM-Classic-NewBlues24H"
Blues: "Aardvark Blues FM" "Blues" "http://74.208.45.146:8639/stream"
Blues: "AcousticFM" "Blues" "http://listen.radionomy.com/Acoustic-FM"
Blues: "Best Blues I Know" "Blues" "http://streaming.radionomy.com/BestBluesIKnow"
Blues: "Blues Radio" "Blues" "http://185.33.22.13:8030"
Blues: "Cocktelera Blues" "Blues" "http://streaming.radionomy.com/Cocktelera-Blues"
Blues: "Con Alma de Blues" "Blues" "http://listen.radionomy.com/Con-Alma-de-Blues"
Blues: "Funky Blues" "Blues" "http://streaming.radionomy.com/FunkyBlues"
Blues: "Big Blue Swing" "Blues" "http://209.236.126.18:8002"
Blues: "Blues Radio UK" "Blues" "http://206.217.213.16:8430/"
Blues: "Crossroads Blues Radio" "Blues" "http://162.216.17.221:8134/stream/"
Blues: "Houston Blues Radio" "Blues" "http://74.208.170.137:8640/stream"
Blues: "K-BLUES" "Blues" "http://listen.radionomy.com:80/K-BLUES"
Blues: "Radio Mississipi Blues" "Blues" "http://listen.radionomy.com:80/RadioMississipi-Blues"
## Oldies
Oldies: "A Better Oldies Station" "Oldies" "http://streaming.radionomy.com/a-better-oldies-station"
Oldies: "ANTENNE BAYERN Oldies but Goldies" "Oldies" "http://mp3channels.webradio.antenne.de:80/oldies-but-goldies"
Oldies: "E.P. Express Radio" "Oldies" "http://37.187.79.56:9246"
Oldies: "Flower Power Radio" "Oldies" "http://50.7.129.122:8433"
Oldies: "Gold Star Radio" "Oldies" "http://listen.radionomy.com/Gold-Star-Radio"
Oldies: "Golden 50s-70s Hits" "Oldies" "http://streaming.radionomy.com/golden-50-70s-hits"
Oldies: "Motown Classics" "Oldies" "http://streaming.radionomy.com/motown-classics"
Oldies: "Radio Nostalgia" "Oldies" "http://streaming.radionomy.com/Radio-Nostalgia"
Oldies: "Rewound Radio" "Oldies" "http://71.125.37.66:8000"
Oldies: "True Oldies" "Oldies" "http://streaming.streamonomy.com/trueoldies"
Oldies: "FUN45s" "Oldies" "http://198.178.123.20:8376"
Oldies: "Oldies 104" "Oldies" "http://66.85.88.2:7142"
Oldies: "Oldie Party" "Oldies" "http://212.48.110.146:8410"
Oldies: "Oldiesradio RGR" "Oldies" "http://streams.lazernet.be:2620"
Oldies: "Pure Gold 95FM" "Oldies" "http://198.178.123.20:8374"
Oldies: "Vinylgodis" "Oldies" "http://89.236.16.230:8000"
Oldies: "RadioMonster.FM - Evergreens Stream (Oldies Rock 60er 70er 80er Webradio)" "Oldies" "http://evergreens.radiomonster.fm/320.mp3"
Oldies: "A.0.0.00Radio:All 60s All the Time" "Oldies" "http://streaming304.radionomy.com:80/keepfree60s"
Oldies: "Oldiesradio RGR" "Oldies" "http://uplink.intronic.nl:80/rgrfm_oldiesradio"
Oldies: "Absolut Oldie" "Oldies" "http://rs17.stream24.net:80/absolut-oldie-classics.mp3"
Oldies: "oppersvanToen" "Oldies" "http://streaming211.radionomy.com:80/Toppers-van-Toen"
Oldies: "Oldies 104 - Streaming Your Favorites! - A Star104.net Station" "Oldies" "ttp://hestia2.cdnstream.com:80/1076_128"
Oldies: "WKXY" "Oldies" "http://streaming211.radionomy.com:80/WKXY"
Oldies: "AlaskaHitRadio" "Oldies" "http://streaming211.radionomy.com:80/Alaska-Hit-Radio"
Oldies: "Golden50/70sHits" "Oldies" "http://streaming211.radionomy.com:80/golden-50-70s-hits"
Oldies: "Old World Tunes" "Oldies" "http://relay.sonixcast.com:80/9836"
Oldies: "TopShelf Oldies" "Oldies" "http://s4.nexuscast.com:8002/autodj"
Oldies: "Addictive-60s" "Oldies" "http://streaming211.radionomy.com:80/Addictive-60s"
Oldies: "K-GOLDEN" "Oldies" "http://streaming211.radionomy.com:80/K-GOLDEN"
Oldies: "Radio Plus Gent (MP3)" "Oldies" "http://str.topradio.be:80/radioplus.mp3"
Oldies: ".113FM Revolution USA" "Oldies" "http://113fm-edge2.cdnstream.com:80/1723_128"
Oldies: "CLASSIC OLDIES JUKEBOX" "Oldies" "http://hestia.cdnstream.com:80/1563_96"
Oldies: "Central FM Pulheim" "Oldies" "http://www.radiobrauweiler.de:8000/live1"
Oldies: "todotapu" "Oldies" "http://streaming211.radionomy.com:80/todotapu"
Oldies: "AMERICANGRAFFITI" "Oldies" "http://streaming206.radionomy.com:80/AMERICAN-GRAFFITI"
Oldies: "BigCityHitRadio" "Oldies" "http://streaming211.radionomy.com:80/Big-City-Hit-Radio"
Oldies: "rolradio" "Oldies" "http://streaming206.radionomy.com:80/rolradio"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
Oldies: "" "Oldies"
#Oldies: "" "" "http://www.977music.com/tunein/web/classicrock.asx
## Reggae
Reggae: "A Better Smokin Reggae Roots Station" "Reggae" "http://streaming.radionomy.com/A-Better-Smokin-Reggae-Roots-Station"
Reggae: "A Reggae Dream" "Reggae" "http://streaming.radionomy.com/AREGGAEDREAM-Rasta24H"
Reggae: "A2R Reggae" "Reggae" "http://streaming.radionomy.com/A2R-Reggae"
Reggae: "Bob Marley & Co" "Reggae" "http://streaming.radionomy.com/A1ONEBOBMARLEYANDCO"
Reggae: "Caribbean Vibes Radio" "Reggae" "http://streaming.streamonomy.com/CaribbeanVibesRadio"
Reggae: "Jamaican Roots Radio" "Reggae" "http://listen.radionomy.com/jamaican-roots-radio"
Reggae: "Joint Radio" "Reggae" "http://72.9.152.111:9998"
Reggae: "One Hundread Locks" "Reggae" "http://streaming.radionomy.com/One-Hundread-Locks"
Reggae: "Reggae Rasta & Roots" "Reggae" "http://192.152.23.243:8470"
Reggae: "Radio Fly Foot Selecta" "Reggae" "http://listen.radionomy.com:80/radio-fly-ReggaEt-selecta"
Reggae: "Feel Jah FM" "Reggae" "http://50.7.98.106:8447"
Reggae: "Fimi Radio" "Reggae" "http://198.178.123.8:8266"
Reggae: "La Grosse Radio Reggae" "Reggae" "http://176.31.246.159:8300"
Reggae: "Reggae Connection" "Reggae" "http://listen.radionomy.com/Reggae-Connection"
Reggae: "Reggae Mix" "Reggae" "http://195.154.80.65:8142"
Reggae: "Scratch Radio" "Reggae" "http://173.192.198.244:8042"
## Classical
Classical: "1000 Classical Hits" "Classical" "http://streaming.radionomy.com/1000ClassicalHits"
Classical: "A Better Classical Station" "Classical" "http://streaming.radionomy.com/A-Better-Classical-Station"
Classical: "AMADEUS-FRIENDS Classical Radio" "Classical" "http://streaming.radionomy.com/AMADEUS-FRIENDS-ClassicalRadio"
Classical: "Ambiance Classique" "Classical" "http://listen.radionomy.com/Ambiance-classique"
Classical: "Classical Music America" "Classical" "http://streaming.radionomy.com/Classicalmusicamericacom"
Classical: "Classical Ways" "Classical" "http://listen.radionomy.com/classicalways"
Classical: "Pure Classic Ireland" "Classical" "http://206.217.201.136:8036"
Classical: "Smooth Riviera" "Classical" "http://streaming.radionomy.com/SMOOTH-RIVIERA"
Classical: "Venice Classic Radio Italia" "Classical" "http://109.123.116.202:8010/stream"
Classical: "WKSU 3 Classical" "Classical" "http://66.225.205.8:8030"
Classical: "Ancient FM" "Classical" "http://simplexstream.com:8058"
Classical: "Audiophile Baroque" "Classical" "http://213.251.157.145:8016"
Classical: "Classical WETA" "Classical" "http://38.100.128.106:8000"
Classical: "La Fenice Channel" "Classical" "http://178.32.140.82:9690"
Classical: "M2 Classic" "Classical" "http://sun.m2stream.fr:9000"
Classical: "Musik Klassic" "Classical" "http://193.34.51.12:80"
Classical: "KDFCFM" "Classical" "http://provisioning.streamtheworld.com"
Classical: "ROCK RADIO SI" "Classical" "http://212.18.63.135:9034/rock"
Classical: "Baars Classic Rock" "Classical" "http://217.148.161.164:8840/stream"
Classical: "977music" "Classical" "http://listen.shoutcast.com/977music"
Classical: ".977 70's Rock" "Classical" "http://19763.live.streamtheworld.com:3690/977_CLASSROCK_SC"
Classical: "Classic Hits 181" "Classical" "http://listen.181fm.com/181-greatoldies_128k.mp3?listenerid=b972324fe71b15c11d8f28c4cad6266c&cb=438072.mp3"
Classical: "radio1rock.bg" "Classical" "http://stream.radioreklama.bg:80/radio1rock.ogg"
Classical: "RFC Radio aac" "Classical" "http://lyra.shoutca.st:8151/rfcaac_autodj"
Classical: ".977 Classic Rock" "Classical" "http://www.977music.com/tunein/web/classicrock.asx"
Classical: "" "Classical" ""
Classical: "" "Classical" ""
Classical: "" "Classical" ""
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
Classical: "" "Classical"
## Country
Country: "1071 WNIH" "Country" "http://listen.radionomy.com/1071WNIH"
Country: "A Better Country Station" "Country" "http://streaming.radionomy.com/a-better-country-station"
Country: "A Country Dream" "Country" "http://streaming.radionomy.com/ACOUNTRYDREAM-Western24H"
Country: "A1 Country" "Country" "http://streaming.radionomy.com/A1Country-AllAmericanCountryRadio"
Country: "Abacus FM Country" "Country" "http://streaming.radionomy.com/AbacusfmCountry"
Country: "Absolutely Country Hits Radio" "Country" "http://185.33.22.15:7800"
Country: "Always Country" "Country" "http://208.85.240.89:80"
Country: "Big R Radio - Country Gold" "Country" "http://107.155.126.42:8230"
Country: "Nashville Edge" "Country" "http://streaming.radionomy.com/NashvilleEdge"
Country: "The Buffalo" "Country" "http://listen.radionomy.com/The-Buffalo"
Country: "Americana Boogie Radio" "Country" "http://us1.internet-radio.com:8182/live"
Country: "BackPorch Bluegrass" "Country" "http://listen.radionomy.com:80/BackPorchBluegrass"
Country: "Bluegrass Mix" "Country" "http://192.81.248.194:8072/stream"
Country: "Country Music 24" "Country" "http://countrymusic24.powerstream.de:9000"
Country: "Country Radio Switzerland" "Country" "http://212.48.126.146:8000"
Country: "Highway Radio" "Country" "http://listen.streamonomy.com/113fmHighwayRadio"
## soma.fm
soma.fm: "Black Rock FM" "For the annual Burning Man festival" "http://ice1.somafm.com/brfm-128-mp3"
soma.fm: "Drone Zone" "Atmospheric textures with minimal beats" "http://ice1.somafm.com/dronezone-128-mp3"
soma.fm: "Groove Salad" "Ambient/downtempo beats and grooves" "http://ice1.somafm.com/groovesalad-128-mp3"
soma.fm: "SF in SF Podcast" "Sci-Fi in San Francisco-author readings" "http://ice1.somafm.com/sf1033-128-mp3"
soma.fm: "DEF CON Radio" "The DEF CON Year-Round Channel" "http://ice1.somafm.com/defcon-128-mp3"
soma.fm: "Fluid" "Instrumental hiphop, future soul and liquid trap" "http://ice1.somafm.com/fluid-128-mp3"
soma.fm: "Lush" "Sensuous vocals with an electronic influence" "http://ice1.somafm.com/lush-128-mp3"
soma.fm: "Illionois Street Lounge" "Lounge" "http://ice1.somafm.com/illstreet-128-mp3"
soma.fm: "Left Coast 70s" "Mellow album rock from the Seventies" "http://ice1.somafm.com/seventies-128-mp3"
soma.fm: "Underground 80s" "Early 80s UK Synthpop and New Wave" "http://ice1.somafm.com/u80s-128-mp3"
soma.fm: "Boot Liquor" "Americana Roots music" "http://ice1.somafm.com/bootliquor-128-mp3"
soma.fm: "Digitalis" "Digitally affected analog rock" "http://ice1.somafm.com/digitalis-128-mp3"
soma.fm: "Deep Space One" "Deep ambient electronic, experimental and space music" "http://ice1.somafm.com/deepspaceone-128-mp3"
soma.fm: "Space Station Soma" "Spaced-out ambient and mid-tempo electronica" "http://ice1.somafm.com/spacestation-128-mp3"
soma.fm: "Sonic Universe" "Jazz with eclectic, avant-garde influence" "http://ice1.somafm.com/sonicuniverse-128-mp3"
soma.fm: "Suburbs of Goa" "Desi-influenced Asian world beats" "http://ice1.somafm.com/suburbsofgoa-128-mp3"
soma.fm: "Beat Blender" "Deep-house and downtempo chill" "http://ice1.somafm.com/beatblender-128-mp3"
soma.fm: "The Trip" "Progressive house / trance" "http://ice1.somafm.com/thetrip-128-mp3"
soma.fm: "cliqhop idm" "Intelligent Dance Music" "http://ice1.somafm.com/cliqhop-128-mp3"
soma.fm: "Dub Step Beyond" "Dubstep, Dub and Deep Bass" "http://ice1.somafm.com/dubstep-128-mp3"
soma.fm: "PopTron" "Electropop and indie dance rock with sparkle and pop" "http://ice1.somafm.com/poptron-128-mp3"
soma.fm: "Indie Pop Rocks!" "New and classic indie pop tracks" "http://ice1.somafm.com/indiepop-128-mp3"
soma.fm: "BAGeL Radio" "Alternative rock radio" "http://ice1.somafm.com/bagel-128-mp3"
soma.fm: "Seven Inch Soul" "Vintage soul tracks from 45 RPM vinyl" "http://ice1.somafm.com/7soul-128-mp3"
soma.fm: "ThistleRadio" "Music from Celtic roots and branches" "http://ice1.somafm.com/thistle-128-mp3"
soma.fm: "Folk Forward" "Indie Folk, Alt-folk and folk classics" "http://ice1.somafm.com/folkfwd-128-mp3"
soma.fm: "Covers" "Just covers" "http://ice1.somafm.com/covers-128-mp3"
soma.fm: "Secret Agent" "Soundtrack for stylish, mysterious life" "http://ice1.somafm.com/secretagent-128-mp3"
soma.fm: "Metal Detector" "Prog to sludge, thrash to post, stoner to crossover" "http://ice1.somafm.com/metal-128-mp3"
soma.fm: "The Silent Channel" "Light and dark ambient electronic music" "http://ice1.somafm.com/silent-128-mp3"
soma.fm: "Mission Control" "Celebrating NASA and Space Explorers" "http://ice1.somafm.com/missioncontrol-128-mp3"
soma.fm: "SF 10-33" "Ambient music mixed with San Francisco traffic" "http://ice1.somafm.com/sf1033-128-mp3"
soma.fm: "Doomed" "Dark industrial / ambient music" "http://ice1.somafm.com/doomed-128-mp3"
soma.fm: "Earwaves" "Electronic and experimental music" "http://ice1.somafm.com/earwaves-128-mp3"
##Urban
Urban: "00's Club Hits" "Dance" "http://pub1.diforfree.org:8000/di_00sclubhits_hi"
Urban: "Ambient" "Ambient" "http://pub1.diforfree.org:8000/di_ambient_hi"
Urban: "Atmospheric Breaks" "Atmospheric" "http://pub1.diforfree.org:8000/di_atmosphericbreaks_hi"
Urban: "Bass & Jackin' House" "House" "http://pub1.diforfree.org:8000/di_bassnjackinhouse_hi"
Urban: "Bassline" "Bassline" "http://pub2.diforfree.org:8000/di_bassline_hi"
Urban: "Big Beat" "Big Beat" "http://pub1.diforfree.org:8000/di_bigbeat_hi"
Urban: "Big Room House" "House" "http://pub1.diforfree.org:8000/di_bigroomhouse_hi"
Urban: "Breaks" "Breaks" "http://pub1.diforfree.org:8000/di_breaks_hi"
Urban: "Chill & Tropical House" "Chill & Tropical House" "http://pub2.diforfree.org:8000/di_chillntropicalhouse_hi"
Urban: "ChillHop" "ChillHop" "http://pub1.diforfree.org:8000/di_chillhop_hi"
Urban: "Chillout" "Chillout" "http://pub1.diforfree.org:8000/di_chillout_hi"
Urban: "Chillout Dreams" "Chillout" "http://pub1.diforfree.org:8000/di_chilloutdreams_hi"
Urban: "Chillstep" "Chillstep" "http://pub1.diforfree.org:8000/di_chillstep_hi"
Urban: "Classic Eurodance" "Dance" "http://pub1.diforfree.org:8000/di_classiceurodance_hi"
Urban: "Classic Eurodisco" "Disco" "http://pub1.diforfree.org:8000/di_classiceurodisco_hi"
Urban: "Classic Trance" "Trance" "http://pub1.diforfree.org:8000/di_classictrance_hi"
Urban: "Classic Vocal Trance" "Trance" "http://pub1.diforfree.org:8000/di_classicvocaltrance_hi"
Urban: "Club Dubstep" "Dubstep" "http://pub1.diforfree.org:8000/di_clubdubstep_hi"
Urban: "Club Sounds" "Club Sounds" "http://pub2.diforfree.org:8000/di_club_hi"
Urban: "DJ Mixes" "Mixes" "http://pub1.diforfree.org:8000/di_djmixes_hi"
Urban: "Dark DnB" "DnB" "http://pub1.diforfree.org:8000/di_darkdnb_hi"
Urban: "Dark PsyTrance" "Trance" "http://pub1.diforfree.org:8000/di_darkpsytrance_hi"
Urban: "Deep House" "House" "http://pub1.diforfree.org:8000/di_deephouse_hi"
Urban: "Deep Nu-Disco" "Deep Nu-Disco" "http://pub1.diforfree.org:8000/di_deepnudisco_hi"
Urban: "Deep Tech" "Deep Tech" "http://pub1.diforfree.org:8000/di_deeptech_hi"
Urban: "Disco House" "House" "http://pub1.diforfree.org:8000/di_discohouse_hi"
Urban: "Downtempo Lounge" "Lounge" "http://pub1.diforfree.org:8000/di_downtempolounge_hi"
Urban: "Drum and Bass" "DnB" "http://pub1.diforfree.org:8000/di_drumandbass_hi"
Urban: "Dub" "Dub" "http://pub1.diforfree.org:8000/di_dub_hi"
Urban: "Dub Techno" "Dub Techno" "http://pub1.diforfree.org:8000/di_dubtechno_hi"
Urban: "Dubstep" "Dubstep" "http://pub1.diforfree.org:8000/di_dubstep_hi"
Urban: "EBM" "EBM" "http://pub1.diforfree.org:8000/di_ebm_hi"
Urban: "Eclectronica" "Eclectronica" "http://pub1.diforfree.org:8000/di_eclectronica_hi"
Urban: "Electro House" "House" "http://pub1.diforfree.org:8000/di_electrohouse_hi"
Urban: "Electro Swing" "Electro" "http://pub1.diforfree.org:8000/di_electroswing_hi"
Urban: "Electropop" "Electropop" "http://pub1.diforfree.org:8000/di_electropop_hi"
Urban: "Epic Trance" "Trance" "http://pub1.diforfree.org:8000/di_epictrance_hi"
Urban: "Euro Dance" "Dance" "http://pub1.diforfree.org:8000/di_eurodance_hi"
Urban: "Funky House" "House" "http://pub1.diforfree.org:8000/di_funkyhouse_hi"
Urban: "Future Bass" "Future Bass" "http://pub1.diforfree.org:8000/di_futurebass_hi"
Urban: "Future Garage" "Future Garage" "http://pub1.diforfree.org:8000/di_futuregarage_hi"
Urban: "Future Synthpop" "Synthpop" "http://pub1.diforfree.org:8000/di_futuresynthpop_hi"
Urban: "Gabber" "Gabber" "http://pub1.diforfree.org:8000/di_gabber_hi"
Urban: "Hands Up" "Hands Up" "http://pub1.diforfree.org:8000/di_handsup_hi"
Urban: "Hard Dance" "Dance" "http://pub1.diforfree.org:8000/di_harddance_hi"
Urban: "Hard Techno" "Techno" "http://pub1.diforfree.org:8000/di_hardtechno_hi"
Urban: "Hardstyle" "Hardstyle" "http://pub1.diforfree.org:8000/di_hardstyle_hi"
Urban: "House" "House" "http://pub1.diforfree.org:8000/di_house_hi"
Urban: "IDM" "IDM" "http://pub1.diforfree.org:8000/di_idm_hi"
Urban: "Indie Dance" "Indie Dance" "http://pub1.diforfree.org:8000/di_indiedance_hi"
Urban: "Jazz House" "House" "http://pub1.diforfree.org:8000/di_jazzhouse_hi"
Urban: "Jungle" "Jungle" "http://pub1.diforfree.org:8000/di_jungle_hi"
Urban: "Latin House" "Latin House" "http://pub1.diforfree.org:8000/di_latinhouse_hi"
Urban: "Liquid DnB" "Liquid DnB" "http://pub1.diforfree.org:8000/di_liquiddnb_hi"
Urban: "Liquid Dubstep" "Liquid Dubstep" "http://pub1.diforfree.org:8000/di_liquiddubstep_hi"
Urban: "Liquid Trap" "Liquid Trap" "http://pub1.diforfree.org:8000/di_liquidtrap_hi"
Urban: "Lounge" "Lounge" "http://pub1.diforfree.org:8000/di_lounge_hi"
Urban: "Mainstage" "Mainstage" "http://pub1.diforfree.org:8000/di_mainstage_hi"
Urban: "Melodic Progressive" "Melodic Progressive" "http://pub2.diforfree.org:8000/di_melodicprogressive_hi"
Urban: "Minimal" "Minimal" "http://pub1.diforfree.org:8000/di_minimal_hi"
Urban: "Nightcore" "Nightcore" "http://pub2.diforfree.org:8000/di_nightcore_hi"
Urban: "Nu Disco" "Nu Disco" "http://pub1.diforfree.org:8000/di_nudisco_hi"
Urban: "Oldschool Acid" "Oldschool Acid" "http://pub1.diforfree.org:8000/di_oldschoolacid_hi"
Urban: "Oldschool House" "House" "http://pub2.diforfree.org:8000/di_oldschoolhouse_hi"
Urban: "Progressive" "Progressive" "http://pub1.diforfree.org:8000/di_progressive_hi"
Urban: "Progressive Psy" "Progressive Psy" "http://pub1.diforfree.org:8000/di_progressivepsy_hi"
Urban: "PsyChill" "PsyChill" "http://pub1.diforfree.org:8000/di_psychill_hi"
Urban: "PsyBient" "PsyBient" "http://pub1.diforfree.org:8000/di_psybient_hi"
Urban: "Russian Club Hits" "Russian" "http://pub1.diforfree.org:8000/di_russianclubhits_hi"
Urban: "Soulful House" "Soulful House" "http://pub1.diforfree.org:8000/di_soulfulhouse_hi"
Urban: "Space Dreams" "Space Dreams" "http://pub1.diforfree.org:8000/di_spacemusic_hi"
Urban: "Tech House" "Tech House" "http://pub1.diforfree.org:8000/di_techhouse_hi"
Urban: "Techno" "Techno" "http://pub1.diforfree.org:8000/di_techno_hi"
Urban: "Trance" "Trance" "http://pub1.diforfree.org:8000/di_trance_hi"
Urban: "Trap" "Trap" "http://pub1.diforfree.org:8000/di_trap_hi"
Urban: "Tribal House" "House" "http://pub1.diforfree.org:8000/di_tribalhouse_hi"
Urban: "UMF Radio" "UMF Radio" "http://pub1.diforfree.org:8000/di_umfradio_hi"
Urban: "Underground Techno" "Techno" "http://pub1.diforfree.org:8000/di_undergroundtechno_hi"
Urban: "Vocal Chillout" "Chillout" "http://pub1.diforfree.org:8000/di_vocalchillout_hi"
Urban: "Vocal Lounge" "Lounge" "http://pub1.diforfree.org:8000/di_vocallounge_hi"
Urban: "Vocal Trance" "Trance" "http://pub1.diforfree.org:8000/di_vocaltrance_hi"
Urban: "Classic Electronica" "Electronica" "http://pub1.diforfree.org:8000/di_classicelectronica_hi"
Non working channels 08/17:
Urban: "***Detroit House and Techno" "House and Techno" "http://pub1.diforfree.org:8000/di_detroithousentechno_hi"
Urban: "***Drumstep" "Drumstep" "http://pub1.diforfree.org:8000/di_drumstep_hi"
Urban: "***Electronic Pioneers" "Electro" "http://pub1.diforfree.org:8000/di_electronicpioneers_hi"
Urban: "***Electronics" "Electronics" "http://pub1.diforfree.org:8000/di_electronics_hi"
Urban: "***Glitch Hop" "Glitch Hop" "http://pub1.diforfree.org:8000/di_glitchhop_hi"
Urban: "***Goa & Psychedelic Trance" "Goa & Psy Trance" "http://pub1.diforfree.org:8000/di_goapsy_hi"
Urban: "***Hardcore" "Hardcore" "http://pub1.diforfree.org:8000/di_hardcore_hi"
Urban: "***Indie Beats" "Indie Beats" "http://pub1.diforfree.org:8000/di_indiebeats_hi"
Urban: "***Oldschool Rave" "Rave" "http://pub1.diforfree.org:8000/di_oldschoolrave_hi"
Urban: "***Oldschool Techno & Trance" "Techno & Trance" "http://pub1.diforfree.org:8000/di_classictechno_hi"
altman
April 14, 2019, 4:19pm
#4
Wow, you customized it to your tasts @ector . Congrats on the great job.
ector
April 14, 2019, 4:21pm
#5
No, it works for everyone you just need to indicate the path where you put the prm2 script and the stations
you must have mpv installed, but I think it works even without it
edit
If you look in the bunsenlabs forum scripts you should find the post
altman
April 14, 2019, 4:23pm
#6
Thx , might check it out, been a while that I haven t been on BL s forum.
Oh , taught it was customized, even easier.
ector
April 14, 2019, 4:27pm
#7
There is only one problem when you start the radio, in the polybar does not work other modules, I hope that someone helps me for solve the thing.
altman
April 14, 2019, 4:28pm
#8
Well that sux, can t help you on that matter sadly.
ector
April 14, 2019, 4:38pm
#9
Who does not use polybar, but only openbox, can put prmp2 in / us / bin / and create a starter in / usr / share / application, with the command prmp2, and reconfigure openbox, should appear in the menu.
Hey @ector
Try backgrounding the process in your action tags (%{A*:.....:}
) like this
%{A1:$HOME/.config/polybar/scripts/pmrp2 & disown:}
Not sure if it fixes it but that’s why it’s hanging the bar, the script is long running (doesn’t exit) so polybar sits waiting for the process to return, backgrounding and disowning the process from polybar usually does the trick.
1 Like
ector
April 15, 2019, 11:24am
#11
Hello @natemaia thanks for the answer, unfortunately it doesn’t work.
Cheers