aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2018-11-21 19:49:09 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2018-11-21 19:49:09 +0100
commite156e79997f40693a80908d5c8cb343c78cd4a58 (patch)
treef6813397be298541d707aa0638c523e5ee24cdd3
parent6d91ce1065f5d2a80679e6edf12dea8bd47a26cd (diff)
downloadscripts-e156e79997f40693a80908d5c8cb343c78cd4a58.tar.gz
scripts-e156e79997f40693a80908d5c8cb343c78cd4a58.zip
Added scripts for floating mpv windows
-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