Archive: #media

2025-11-03

aka yesterday

💡︎ Streaming radio

One of the extremely useful snippets I discovered in Evan Hahn's Scripts I wrote that I use all the time is radio.

I cannot work in silence. I need to have something going in the background, preferably classics and not encumbered with too much chit-chat.

Instead of having a browser tab or app sitting there in the background, I adapted Evan's script. It uses mpv, so now I've got a Ghostty tab running in the background instead.

#!/usr/bin/env bash
# Check https://mytuner-radio.com/nl/radio/vrt-radio-2-limburg-402485/
set -e
set -u
set -o pipefail

if [ "$1" == joeeasy ]; then
  url='https://icecast-qmusicbe-cdp.triple-it.nl/joe_easy.aac'
elif [ "$1" == radio2 ]; then
  url='http://vrt.streamabc.net/vrt-radio2limburg-mp3-128-2845863?sABC=68s94r20#0#r7p08610r6n19o27sn00016q8n8877qs#&aw_0_1st.playerid=&amsparams=playerid:;skey:1761168928'
else
  echo "don't know $1" 1>&2
  exit 1
fi

exec mpv --really-quiet "$url"