diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-21 19:49:09 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-21 19:49:09 +0100 |
commit | e156e79997f40693a80908d5c8cb343c78cd4a58 (patch) | |
tree | f6813397be298541d707aa0638c523e5ee24cdd3 | |
parent | 6d91ce1065f5d2a80679e6edf12dea8bd47a26cd (diff) | |
download | scripts-e156e79997f40693a80908d5c8cb343c78cd4a58.tar.gz scripts-e156e79997f40693a80908d5c8cb343c78cd4a58.zip |
Added scripts for floating mpv windows
-rw-r--r-- | mpvFloat.sh | 3 | ||||
-rw-r--r-- | mpvFloatLoop.sh | 3 | ||||
-rw-r--r-- | webview.sh | 6 |
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 & @@ -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 |