Merge pull request #1118 from N-R-K/xdgdefault

xdgdefault: make dmenu case-insensitive, fix style
This commit is contained in:
Terminator X 2021-07-28 14:33:49 +05:30 committed by GitHub
commit 23a806864f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -13,10 +13,10 @@
# set to 1 to enable GUI apps
GUI="${GUI:-0}"
if [ "$GUI" -ne 0 ] && command -v dmenu >/dev/null 2>& 1; then
menu="dmenu -l 7"
if [ "$GUI" -ne 0 ] && command -v dmenu > /dev/null 2>& 1; then
menu="dmenu -i -l 7"
elif command -v fzf > /dev/null 2>& 1; then
menu="fzf -e --tiebreak=begin"
menu="fzf -e --tiebreak=begin"
fi
if [ -z "$1" ] || [ -z "$menu" ] > /dev/null 2>& 1; then