14 lines
224 B
Bash
Executable File
14 lines
224 B
Bash
Executable File
#!/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 &
|
|
|
|
mpv --no-terminal https://"$link" &
|
|
|
|
exit 0
|