Skip to content

Commit

Permalink
Merge pull request #1118 from N-R-K/xdgdefault
Browse files Browse the repository at this point in the history
xdgdefault: make dmenu case-insensitive, fix style
  • Loading branch information
jarun committed Jul 28, 2021
2 parents 88e38f1 + f3c29fe commit 23a8068
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/xdgdefault
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23a8068

Please sign in to comment.