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