aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpvFloat.sh3
-rw-r--r--mpvFloatLoop.sh3
-rw-r--r--webview.sh6
3 files changed, 9 insertions, 3 deletions
diff --git a/mpvFloat.sh b/mpvFloat.sh
new file mode 100644
index 0000000..b9a2aed
--- /dev/null
+++ b/mpvFloat.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+nohup mpv --geometry=-0-0 --autofit=40% --title="mpvfloat" "$1" >/dev/null &
diff --git a/mpvFloatLoop.sh b/mpvFloatLoop.sh
new file mode 100644
index 0000000..ca7c0b1
--- /dev/null
+++ b/mpvFloatLoop.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+nohup mpv --loop-playlist --geometry=-0-0 --autofit=40% --title="mpvfloat" "$1" >/dev/null &
diff --git a/webview.sh b/webview.sh
index c9b08fd..ce9294e 100644
--- a/webview.sh
+++ b/webview.sh
@@ -13,7 +13,7 @@ if echo "$1" | grep youtube > /dev/null; then
case "$chosen" in
mpv) nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;
- "mpv (float)") nohup mpv --geometry=-0-0 --autofit=40% --title="mpvfloat" "$1" >/dev/null & ;;
+ "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;;
qutebrowser) qutebrowser "$1" & ;;
esac
# General checks
@@ -24,7 +24,7 @@ elif echo $mpvFiles | grep -w $ext > /dev/null; then
case "$chosen" in
mpv) nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;
- "mpv (float)") nohup mpv --geometry=-0-0 --autofit=40% --title="mpvfloat" "$1" >/dev/null & ;;
+ "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;;
qutebrowser) qutebrowser "$1" & ;;
esac
elif echo $wgetFiles | grep -w $ext > /dev/null; then
@@ -34,7 +34,7 @@ else
case "$chosen" in
mpv) nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;
- "mpv (float)") nohup mpv --geometry=-0-0 --autofit=40% --title="mpvfloat" "$1" >/dev/null & ;;
+ "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;;
qutebrowser) qutebrowser "$1" & ;;
pqiv) nohup pqiv -i -P "0,0" -T "pqivfloat" "$1" >/dev/null & ;;
esac