Files
sxmo-utils/scripts/appscripts/sxmo_websearch.sh
2022-03-15 08:00:00 -04:00

15 lines
407 B
Bash
Executable File

#!/bin/sh
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright 2022 Sxmo Contributors
# title="$icon_glb Web Search"
# include common definitions
# shellcheck source=scripts/core/sxmo_common.sh
. sxmo_common.sh
SEARCHQUERY="$(echo "Close Menu" | sxmo_dmenu_with_kb.sh -p "Search:")" || exit 0
case "$SEARCHQUERY" in
"Close Menu") exit 0 ;;
*) $BROWSER "https://duckduckgo.com/?q=${SEARCHQUERY}" ;;
esac