#!/bin/sh set -eu channel="${1:-}" if [ "${channel}" = lofi ]; then url='https://live.hunter.fm/lofi_low' elif [ "${channel}" = trance ]; then url='http://ubuntu.hbr1.com:19800/trance.ogg' elif [ "${channel}" = salsa ]; then url='https://latinasalsa.ice.infomaniak.ch/latinasalsa.mp3' elif [ "${channel}" = kfai ]; then url='https://kfai.broadcasttool.stream/kfai-1' else echo "don't know \"${channel}\": lofi/trance/salsa/kfai" 1>&2 exit 1 fi exec mpv --really-quiet "${url}"