diff options
Diffstat (limited to 'home/.local/bin/togreta')
| -rwxr-xr-x | home/.local/bin/togreta | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/home/.local/bin/togreta b/home/.local/bin/togreta new file mode 100755 index 0000000..14caaa4 --- /dev/null +++ b/home/.local/bin/togreta @@ -0,0 +1,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 |
