~mil/sxmo-utils

ref: 262418637f878d9325f6fb5a0a2844b3e20c95b2 sxmo-utils/scripts/appscripts/sxmo_websearch.sh -rwxr-xr-x 385 bytes
26241863Stacy Harper Rework of the sxmo_modemtext with benefit 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env sh

# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. "$(dirname "$0")/sxmo_common.sh"

sxmo_keyboard.sh open
SEARCHQUERY="$(
	echo "Close Menu" | dmenu -t -p "Search:" -c -l 20
)"
sxmo_keyboard.sh close
[ "Close Menu" = "$SEARCHQUERY" ] && exit 0

echo "$SEARCHQUERY" | grep . || exit 0

$BROWSER "https://duckduckgo.com/?q=${SEARCHQUERY}"