aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_togreta
blob: 3aa0afb61128ce841842d5cfb9771c00fd753feb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env dash

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