mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
added fzf as a fallback if bemenu is not there
This commit is contained in:
committed by
GitHub
parent
3328c44905
commit
8430ea6742
6
yt-music
6
yt-music
@@ -292,7 +292,11 @@ play_next() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
menu() {
|
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##*/}"
|
logdir="/tmp/${0##*/}"
|
||||||
|
|||||||
Reference in New Issue
Block a user