aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_togreta
blob: 9a189f9363836ec55d9ba19403c88f67746049cc (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