aboutsummaryrefslogtreecommitdiff
path: root/webview.sh
diff options
context:
space:
mode:
Diffstat (limited to 'webview.sh')
-rwxr-xr-x[-rw-r--r--]webview.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/webview.sh b/webview.sh
index 457f9ee..5877325 100644..100755
--- a/webview.sh
+++ b/webview.sh
@@ -9,11 +9,13 @@ wgetFiles="mp3 pdf"
# Check youtube link
if echo "$1" | grep youtube > /dev/null; then
- chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\nqutebrowser\nw3m" | dmenu -i)
+ chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\ndownload (y-dl)\nqutebrowser\nw3m" | dmenu -i)
case "$chosen" in
mpv) nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;
- "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;;
+ "mpv (float)") ~/scripts/mpvFloat.sh "$1" ;;
+ "download (y-dl)") /home/inigo/scripts/youtube-dlFloat.sh "$1" & ;;
+ qutebrowser) qutebrowser "$1" & ;;
qutebrowser) qutebrowser "$1" & ;;
w3m) urxvt -e w3m "$1" & ;;
esac
@@ -25,18 +27,19 @@ 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)") bash ~/scripts/mpvFloat.sh "$1" ;;
+ "mpv (float)") ~/scripts/mpvFloat.sh "$1" ;;
qutebrowser) qutebrowser "$1" & ;;
esac
elif echo $wgetFiles | grep -w $ext > /dev/null; then
- i3 exec wget "$1" >/dev/null &
+ nohup wget "$1" >~/log-wget.txt &
else
- chosen=$(echo -e "mpv\nmpv (loop)\npqiv\nqutebrowser\nw3m" | dmenu -i)
+ chosen=$(echo -e "mpv\nmpv (loop)\npqiv\ndownload (y-dl)\nqutebrowser\nw3m" | dmenu -i)
case "$chosen" in
mpv) nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;
- "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;;
+ "mpv (float)") ~/scripts/mpvFloat.sh "$1" ;;
pqiv) nohup pqiv -i -P "0,0" -T "pqivfloat" "$1" >/dev/null & ;;
+ "download (y-dl)") /home/inigo/scripts/youtube-dlFloat.sh "$1" & ;;
qutebrowser) qutebrowser "$1" & ;;
w3m) urxvt -e w3m "$1" & ;;
esac