You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
393 B
16 lines
393 B
#!/usr/bin/env sh |
|
|
|
# include common definitions |
|
# shellcheck source=scripts/core/sxmo_common.sh |
|
. "$(dirname "$0")/sxmo_common.sh" |
|
|
|
pidof "$KEYBOARD" || "$KEYBOARD" & |
|
SEARCHQUERY="$( |
|
echo "Close Menu" | dmenu -t -p "Search:" -c -l 20 |
|
)" |
|
pkill "$KEYBOARD" |
|
[ "Close Menu" = "$SEARCHQUERY" ] && exit 0 |
|
|
|
echo "$SEARCHQUERY" | grep . || exit 0 |
|
|
|
$BROWSER "https://duckduckgo.com/?q=${SEARCHQUERY}"
|
|
|