diff --git a/bin/cliplumber b/bin/cliplumber index 091301c..bc4473b 100755 --- a/bin/cliplumber +++ b/bin/cliplumber @@ -34,12 +34,13 @@ check_exists "$TERM_EMU" "mpv" "youtube-dl" && opts="$(printf "audio-search\n%s" "$opts")" check_exists "dragon" && opts="$(printf "drag-n-drop\n%s" "$opts")" -# TODO: check requirements +# Enable additional features when the clipboard contains an URL if [ -n "$urls" ] && check_exists "youtube-dl"; then check_exists "mpv" && opts="$(printf "play\n%s" "$opts")" opts="$(printf "download\n%s" "$opts")" fi +# Load default choice last check_exists "qrencode" "feh" && opts="$(printf "qr\n%s" "$opts")"