From 8430ea674292e4393c8d781667b044e500f8a43e Mon Sep 17 00:00:00 2001 From: justmessingaround <69480361+DemonKingSwarn@users.noreply.github.com> Date: Thu, 30 Nov 2023 23:00:24 +0530 Subject: [PATCH] added fzf as a fallback if bemenu is not there --- yt-music | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yt-music b/yt-music index 5351f7d..22563b0 100755 --- a/yt-music +++ b/yt-music @@ -292,7 +292,11 @@ play_next() { } menu() { - bemenu --fn 'IBM Plex Sans 15' -i -c -W 0.5 -B 3 -p "$1" -l 25 -I "${2:-0}" -P ">>" + if command -v bemenu &> /dev/null; then + bemenu --fn 'IBM Plex Sans 15' -i -c -W 0.5 -B 3 -p "$1" -l 25 -I "${2:-0}" -P ">>" + else + fzf --prompt="$1" --height=25 --reverse --border=horizontal --header="${2:-0}" --marker=">>" + fi } logdir="/tmp/${0##*/}"