Added wayland support.
This commit is contained in:
parent
52d02d84b0
commit
2b54422aed
@ -5,11 +5,10 @@
|
|||||||
|
|
||||||
source $HOME/.config/dmenu/config
|
source $HOME/.config/dmenu/config
|
||||||
|
|
||||||
[ -z "$@" ] && link=$(xclip -o) || link="$@"
|
case "$(printf "mpv\\nbrowser\\ncopy url [X11]\\ncopy url [Wayland]\\nw3m" | $DMENU -p "Open link with what program?")" in
|
||||||
|
mpv) "$VIDEO" "$@" ;;
|
||||||
case "$(printf "mpv\\nbrowser\\ncopy url\\nw3m" | $DMENU -p "Open link with what program?")" in
|
browser) "$BROWSER" "$@" > /dev/null;;
|
||||||
mpv) "$VIDEO" "$link" ;;
|
"copy url [X11]") echo "$@" | xclip -selection clipboard ;;
|
||||||
browser) "$BROWSER" "$link" > /dev/null;;
|
"copy url [Wayland]") echo "$@" | wl-copy -n ;;
|
||||||
"copy url") echo "$link" | xclip -selection clipboard ;;
|
w3m) readable "$@" | w3m -T text/html ;;
|
||||||
w3m) readable "$link" | w3m -T text/html ;;
|
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user