diff --git a/dmenu-link-handler b/dmenu-link-handler index bb36723..e5e5432 100755 --- a/dmenu-link-handler +++ b/dmenu-link-handler @@ -8,9 +8,10 @@ load_config () { } menu () { - case "$(printf "mpv\\nbrowser\\ncopy url [X11]\\ncopy url [Wayland]\\nw3m" | $DMENU -p "Open link with what program?")" in - mpv) "$VIDEO" "$@" ;; - browser) "$BROWSER" "$@" > /dev/null;; + case "$(printf "mpv\\nmpv audio\\nbrowser\\ncopy url [X11]\\ncopy url [Wayland]\\nw3m" | $DMENU -p "Open link with what program?")" in + mpv) start-program "$VIDEO" "$@" ;; + "mpv audio") "$VIDEO" "$@" --no-video ;; + browser) start-program "$BROWSER" "$@" ;; "copy url [X11]") echo "$@" | xclip -selection clipboard ;; "copy url [Wayland]") echo "$@" | wl-copy -n ;; w3m) readable "$@" | w3m -T text/html ;;