dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 62403f4d51186c9bb9658c12af644a594c24f198
parent b10daff5184a8d7451d989a8016aadcadf3d21d1
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 27 Feb 2020 08:46:30 +0100

Add radio streaming script

Diffstat:
A.local/bin/radio | 47+++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+), 0 deletions(-)

diff --git a/.local/bin/radio b/.local/bin/radio @@ -0,0 +1,47 @@ +#!/bin/sh + +n="bitreich +2f30 blue +2f30 red +DR P1 +DR P2 +DR P3 +DR P4 Østjylland +DR P5 Østjylland +DR P6 Beat +DR P8 Jazz +WBGO" + +lines=10 +#t="$(printf '%s' "$n" | dmenu -i -l "$lines")" +t="$(printf '%s' "$n" | fzy -l "$lines")" + +case "$t" in + bitreich) + u="http://bitreich.org:3232/live";; + "2f30 blue") + u="https://radio.2f30.org:8443/blue.mp3";; + "2f30 red") + u="https://radio.2f30.org:8443/red.mp3";; + "DR P1") + u="http://live-icy.gss.dr.dk/A/A03H.mp3.m3u";; + "DR P2") + u="http://live-icy.gss.dr.dk/A/A04H.mp3.m3u";; + "DR P3") + u="http://live-icy.gss.dr.dk/A/A05H.mp3.m3u";; + "DR P4 Østjylland") + u="http://live-icy.gss.dr.dk/A/A14H.mp3.m3u";; + "DR P5 Østjylland") + u="http://live-icy.gss.dr.dk/A/A24H.mp3.m3u";; + "DR P6 Beat") + u="http://live-icy.gss.dr.dk/A/A29H.mp3.m3u";; + "DR P8 Jazz") + u="http://live-icy.gss.dr.dk/A/A22H.mp3.m3u";; + "WBGO") + u="http://wbgo.streamguys.net/wbgo128";; + *) + printf 'unknown station %s\n' "$t" + exit 1;; +esac + +mpv "$u"