added fzf as a fallback if bemenu is not there

This commit is contained in:
justmessingaround
2023-11-30 23:00:24 +05:30
committed by GitHub
parent 3328c44905
commit 8430ea6742

View File

@@ -292,7 +292,11 @@ play_next() {
}
menu() {
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##*/}"