Use $BROWSER for search script and actually close if user hits close menu

master
Miles Alan 5 years ago
parent c0bf16468b
commit 372b9501a7
  1. 4
      scripts/appscripts/sxmo_websearch.sh

@ -4,6 +4,6 @@ SEARCHQUERY="$(
echo "Close Menu" | dmenu -t -p "Search Query:" -c -fn "Terminus-20" -l 20 echo "Close Menu" | dmenu -t -p "Search Query:" -c -fn "Terminus-20" -l 20
)" )"
pkill svkbd-sxmo 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}"

Loading…
Cancel
Save