From 5a54e83ba33476d77de52c9385ba78cf5ec22c75 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Mon, 26 Nov 2018 17:28:27 +0100 Subject: Added w3m option to webview.sh and python to dmenuTerm.sh --- webview.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'webview.sh') diff --git a/webview.sh b/webview.sh index ce9294e..457f9ee 100644 --- a/webview.sh +++ b/webview.sh @@ -9,12 +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" | dmenu -i) + chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\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" ;; qutebrowser) qutebrowser "$1" & ;; + w3m) urxvt -e w3m "$1" & ;; esac # General checks elif echo $pqivFiles | grep -w $ext > /dev/null; then @@ -30,12 +31,13 @@ elif echo $mpvFiles | grep -w $ext > /dev/null; then elif echo $wgetFiles | grep -w $ext > /dev/null; then i3 exec wget "$1" >/dev/null & else - chosen=$(echo -e "mpv\nmpv (loop)\npqiv\nqutebrowser" | dmenu -i) + chosen=$(echo -e "mpv\nmpv (loop)\npqiv\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" ;; - qutebrowser) qutebrowser "$1" & ;; pqiv) nohup pqiv -i -P "0,0" -T "pqivfloat" "$1" >/dev/null & ;; + qutebrowser) qutebrowser "$1" & ;; + w3m) urxvt -e w3m "$1" & ;; esac fi -- cgit v1.2.1