|
|
@ -34,12 +34,13 @@ check_exists "$TERM_EMU" "mpv" "youtube-dl" && |
|
|
opts="$(printf "audio-search\n%s" "$opts")" |
|
|
opts="$(printf "audio-search\n%s" "$opts")" |
|
|
check_exists "dragon" && |
|
|
check_exists "dragon" && |
|
|
opts="$(printf "drag-n-drop\n%s" "$opts")" |
|
|
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 |
|
|
if [ -n "$urls" ] && check_exists "youtube-dl"; then |
|
|
check_exists "mpv" && |
|
|
check_exists "mpv" && |
|
|
opts="$(printf "play\n%s" "$opts")" |
|
|
opts="$(printf "play\n%s" "$opts")" |
|
|
opts="$(printf "download\n%s" "$opts")" |
|
|
opts="$(printf "download\n%s" "$opts")" |
|
|
fi |
|
|
fi |
|
|
|
|
|
# Load default choice last |
|
|
check_exists "qrencode" "feh" && |
|
|
check_exists "qrencode" "feh" && |
|
|
opts="$(printf "qr\n%s" "$opts")" |
|
|
opts="$(printf "qr\n%s" "$opts")" |
|
|
|
|
|
|
|
|
|