Add Web Search script to prompt dmenu for query to search DDG in surf

master
Miles Alan 5 years ago
parent 402aa6f142
commit 086d468ac7
  1. 9
      scripts/appscripts/sxmo_websearch.sh
  2. 1
      scripts/core/sxmo_appmenu.sh

@ -0,0 +1,9 @@
#!/usr/bin/env sh
pidof svkbd-sxmo || svkbd-sxmo &
SEARCHQUERY="$(
echo "Close Menu" | dmenu -p "Search Query:" -c -fn "Terminus-20" -l 20
)"
pkill svkbd-sxmo
[ "Close Menu" = $SEARCHQUERY ] && exit 0
surf "https://duckduckgo.com/?q=${SEARCHQUERY}"

@ -32,6 +32,7 @@ programchoicesinit() {
# Scripts menu # Scripts menu
echo $WMCLASS | grep -i "scripts" && CHOICES="$(echo " echo $WMCLASS | grep -i "scripts" && CHOICES="$(echo "
Web Search ^ 0 ^ sxmo_websearch.sh
Timer ^ 0 ^ sxmo_timermenu.sh Timer ^ 0 ^ sxmo_timermenu.sh
Youtube ^ 0 ^ sxmo_youtube.sh video Youtube ^ 0 ^ sxmo_youtube.sh video
Youtube (Audio) ^ 0 ^ sxmo_youtube.sh audio Youtube (Audio) ^ 0 ^ sxmo_youtube.sh audio

Loading…
Cancel
Save