added tv streams

This commit is contained in:
2020-11-15 18:14:35 +01:00
parent 03217cbc30
commit 83578f95ef
4 changed files with 62 additions and 0 deletions

19
.local/share/tv/tv.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env sh
# https://wiki.ubuntuusers.de/Internet-TV/Stationen/
set -eu -o pipefail
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
MAP="$SCRIPTPATH/tv.csv"
cat "$MAP" \
| cut -d ',' -f 1 \
| rofi -dmenu -i -p "TV" \
| head -n 1 \
| xargs -i --no-run-if-empty grep "{}" "$MAP" \
| cut -d ',' -f 2 \
| head -n 1 \
| xargs -i --no-run-if-empty /bin/mpv "{}"
exit 0