From d48be55b997b9e308347ac038730bd74cdf8d203 Mon Sep 17 00:00:00 2001 From: lhark Date: Wed, 20 Nov 2019 23:58:17 +0000 Subject: [PATCH] [cliplumber] Add comments --- bin/cliplumber | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")"