aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.local/bin/togreta
blob: 14caaa4e86d57f1100a8aebdc7b876fe118750a1 (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=$(xclip -o -selection clipboard)
elif [ "$1" = "-" ]; then
    read -r url
else
    url="$1"
fi

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

tokodi /storage/videos/greta.strm