aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_local/bin/executable_togreta
diff options
context:
space:
mode:
Diffstat (limited to 'dot_local/bin/executable_togreta')
-rwxr-xr-xdot_local/bin/executable_togreta14
1 files changed, 14 insertions, 0 deletions
diff --git a/dot_local/bin/executable_togreta b/dot_local/bin/executable_togreta
new file mode 100755
index 0000000..d452a2e
--- /dev/null
+++ b/dot_local/bin/executable_togreta
@@ -0,0 +1,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