Make close menu entry in scripts more functional

This commit is contained in:
Miles Alan 2020-06-20 10:36:56 -05:00
parent f4aea53ad1
commit 34cd1fd5bb
3 changed files with 15 additions and 7 deletions

View file

@ -4,6 +4,8 @@ SEARCHQUERY="$(
echo "Close Menu" | dmenu -t -p "Search Query:" -c -fn "Terminus-20" -l 20
)"
pkill svkbd-sxmo
[ "Close Menu" = "$SEARCHQUERY" ] && exit 0
echo "$SEARCHQUERY" | grep . || exit 0
$BROWSER "https://duckduckgo.com/?q=${SEARCHQUERY}"