aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.local/bin/togreta
blob: d452a2e313f20c4a95d8bee9f60e83c2c8aa6225 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh

if [ -z "$1" ]; then
    url=$(wl-paste)
elif [ "$1" = "-" ]; then
    read -r url
else
    url="$1"
fi

# shellcheck disable=SC2029
ssh greta.wg restream toggle "$url"

tokodi /storage/videos/greta.strm