From 372b9501a7fd5d62cd324271385371e6a90dba02 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Tue, 26 May 2020 18:42:19 -0500 Subject: [PATCH] Use $BROWSER for search script and actually close if user hits close menu --- scripts/appscripts/sxmo_websearch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/appscripts/sxmo_websearch.sh b/scripts/appscripts/sxmo_websearch.sh index 9cd9f39..f271eba 100755 --- a/scripts/appscripts/sxmo_websearch.sh +++ b/scripts/appscripts/sxmo_websearch.sh @@ -4,6 +4,6 @@ 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 -surf "https://duckduckgo.com/?q=${SEARCHQUERY}" +$BROWSER "https://duckduckgo.com/?q=${SEARCHQUERY}"