aboutsummaryrefslogtreecommitdiff
path: root/webview.sh
diff options
context:
space:
mode:
Diffstat (limited to 'webview.sh')
-rwxr-xr-xwebview.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/webview.sh b/webview.sh
index a844ce1..ae3915a 100755
--- a/webview.sh
+++ b/webview.sh
@@ -14,7 +14,7 @@ imgViewer="showURLimage.sh"
# Check youtube link
if echo "$1" | grep "youtube" >/dev/null; then
- chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\nmpv (terminal)\ndownload (y-dl)\nqutebrowser\nw3m" | dmenu -i)
+ chosen=$(printf "mpv\nmpv (loop)\nmpv (float)\nmpv (terminal)\ndownload (y-dl)\nqutebrowser\nw3m\n" | dmenu -i)
case "$chosen" in
"mpv") nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;
@@ -28,7 +28,7 @@ if echo "$1" | grep "youtube" >/dev/null; then
elif echo "$imageFiles" | grep -w "$ext" >/dev/null; then
"$imgViewer" "$1" >/dev/null &
elif echo "$mpvFiles" | grep -w "$ext" >/dev/null; then
- chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\nmpv (terminal)\nqutebrowser" | dmenu -i)
+ chosen=$(printf "mpv\nmpv (loop)\nmpv (float)\nmpv (terminal)\nqutebrowser\n" | dmenu -i)
case "$chosen" in
mpv) nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;
@@ -39,7 +39,7 @@ elif echo "$mpvFiles" | grep -w "$ext" >/dev/null; then
elif echo "$wgetFiles" | grep -w "$ext" >/dev/null; then
nohup wget "$1" >~/log-wget.txt &
else
- chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\nmpv (terminal)\nsxiv\ndownload (y-dl)\nqutebrowser\nw3m" | dmenu -i)
+ chosen=$(printf "mpv\nmpv (loop)\nmpv (float)\nmpv (terminal)\nsxiv\ndownload (y-dl)\nqutebrowser\nw3m\n" | dmenu -i)
case "$chosen" in
mpv) nohup mpv "$1" >/dev/null & ;;
"mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;;