Browse Source

Fix case-matching (#1066)

Case sensitivity prevents dmenuhandler from copying the URL to the clipboard.
pull/1067/head
Ginner 4 months ago committed by GitHub
parent
commit
0d01624c59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .local/bin/dmenuhandler

2
.local/bin/dmenuhandler

@ -5,7 +5,7 @@
feed="${1:-$(printf "%s" | dmenu -p 'Paste URL or file path')}"
case "$(printf "Copy URL\\nsxiv\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dl\\nqueue yt-dl audio" | dmenu -i -p "Open it with?")" in
"copy url") echo "$feed" | xclip -selection clipboard ;;
"Copy URL") echo "$feed" | xclip -selection clipboard ;;
mpv) setsid -f mpv -quiet "$feed" >/dev/null 2>&1 ;;
"mpv loop") setsid -f mpv -quiet --loop "$feed" >/dev/null 2>&1 ;;
"mpv float") setsid -f "$TERMINAL" -e mpv --geometry=+0-0 --autofit=30% --title="mpvfloat" "$feed" >/dev/null 2>&1 ;;

Loading…
Cancel
Save