Run program in detached from terminal, and have mpv no video option.
This commit is contained in:
parent
1a11ee39f2
commit
600a71428e
@ -8,9 +8,10 @@ load_config () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
menu () {
|
menu () {
|
||||||
case "$(printf "mpv\\nbrowser\\ncopy url [X11]\\ncopy url [Wayland]\\nw3m" | $DMENU -p "Open link with what program?")" in
|
case "$(printf "mpv\\nmpv audio\\nbrowser\\ncopy url [X11]\\ncopy url [Wayland]\\nw3m" | $DMENU -p "Open link with what program?")" in
|
||||||
mpv) "$VIDEO" "$@" ;;
|
mpv) start-program "$VIDEO" "$@" ;;
|
||||||
browser) "$BROWSER" "$@" > /dev/null;;
|
"mpv audio") "$VIDEO" "$@" --no-video ;;
|
||||||
|
browser) start-program "$BROWSER" "$@" ;;
|
||||||
"copy url [X11]") echo "$@" | xclip -selection clipboard ;;
|
"copy url [X11]") echo "$@" | xclip -selection clipboard ;;
|
||||||
"copy url [Wayland]") echo "$@" | wl-copy -n ;;
|
"copy url [Wayland]") echo "$@" | wl-copy -n ;;
|
||||||
w3m) readable "$@" | w3m -T text/html ;;
|
w3m) readable "$@" | w3m -T text/html ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user