bash/fedilives/owncast.sh

14 lines
224 B
Bash
Raw Normal View History

2023-02-14 18:22:28 +00:00
#!/usr/bin/env bash
: "${1?How to use: $0 OWNCAST_LINK }"
url="$1"
link=$(echo "$url" | sed 's#https://##' | sed 's#/##' )
echo
xdg-open https://"$link"/embed/chat/readwrite &
2023-02-18 17:15:27 +00:00
mpv --no-terminal https://"$link" &
2023-02-14 18:22:28 +00:00
exit 0