Commit cfd6085
xxwhirlpool
·
2026-04-08 22:03:30 -0400 EDT
parent 797885c
radio
2 files changed,
+38,
-1
+2,
-1
| ... | ... | @@ -36,4 +36,5 @@ config/.local/bin/quote | |
| 36 | 36 | config/.local/bin/quoterandom | |
| 37 | 37 | config/.local/bin/discord_timest | |
| 38 | 38 | scripts/Scripts/plex/playlists/* | |
| 39 | - | config/.local/bin/radio | |
| 39 | + | config/.config/mpd.conf | |
| 40 | + | config/.config/rmpc/config.ron |
+36,
-0
| ... | ... | @@ -0,0 +1,36 @@ | |
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | ||
| 3 | + | # stream URLs | |
| 4 | + | ||
| 5 | + | declare -A stations=( | |
| 6 | + | ["KEXP"]="https://raw.githubusercontent.com/mikepierce/internet-radio-streams/refs/heads/main/KEXP-Seattle.m3u" | |
| 7 | + | ["NTS1"]="https://stream-relay-geo.ntslive.net/stream" | |
| 8 | + | ["NTS2"]="https://stream-relay-geo.ntslive.net/stream2" | |
| 9 | + | ["indiebeat-pop"]="https://azura.theindiebeat.fm/listen/the_indie_beat_radio_pop/radio.mp3" | |
| 10 | + | ["indiebeat-rock"]="https://azura.theindiebeat.fm/listen/the_indie_beat_radio_-_rock/radio.mp3" | |
| 11 | + | ["indiebeat-jazz"]="https://azura.theindiebeat.fm/listen/the_indie_beat_radio_-_jazz/radio.mp3" | |
| 12 | + | ["indiebeat-electronic"]="https://azura.theindiebeat.fm/listen/the_indie_beat_radio_-_electronic/radio.mp3" | |
| 13 | + | ["indiebeat-bonkwave"]="https://azura.theindiebeat.fm/listen/not_what_i_call_radio_bonk_wave/radio.mp3" | |
| 14 | + | ["dadradio"]="http://stacey-campbell.com:8001/dadradio.mp3" | |
| 15 | + | ) | |
| 16 | + | ||
| 17 | + | gum_echo() { | |
| 18 | + | echo "$@" | gum style --foreground 212 --border-foreground 212 --border double --width 50 --margin "1 2" --padding "2 4" --align center | |
| 19 | + | } | |
| 20 | + | ||
| 21 | + | choice() { | |
| 22 | + | choose=$(gum choose "kexp" "nts1" "nts2" "dadradio" "indiebeat-pop" "indiebeat-rock" "indiebeat-jazz") | |
| 23 | + | case "$choose" in | |
| 24 | + | kexp) gum_echo "playing KEXP" && mpv "${stations['KEXP']}";; | |
| 25 | + | nts1) gum_echo "playing NTS1" && mpv "${stations['NTS1']}";; | |
| 26 | + | nts2) gum_echo "playing NTS2" && mpv "${stations['NTS2']}";; | |
| 27 | + | dadradio) gum_echo "playing dadradio" && mpv "${stations['dadradio']}";; | |
| 28 | + | indiebeat-pop) gum_echo "playing indiebeat - pop" && mpv "${stations['indiebeat-pop']}";; | |
| 29 | + | indiebeat-rock) gum_echo "playing indiebeat - rock" && mpv "${stations['indiebeat-rock']}";; | |
| 30 | + | indiebeat-jazz) gum_echo "playing indiebeat - jazz" && mpv "${stations['indiebeat-jazz']}";; | |
| 31 | + | indiebeat-electronic) gum_echo "playing indiebeat - electronic" && mpv "${stations['indiebeat-electronic']}";; | |
| 32 | + | indiebeat-bonkwave) gum_echo "playing indiebeat - bonkwave" && mpv "${stations['indiebeat-bonkwave']}";; | |
| 33 | + | esac | |
| 34 | + | } | |
| 35 | + | ||
| 36 | + | choice |