Add Web Search script to prompt dmenu for query to search DDG in surf
This commit is contained in:
parent
402aa6f142
commit
086d468ac7
2 changed files with 10 additions and 0 deletions
9
scripts/appscripts/sxmo_websearch.sh
Executable file
9
scripts/appscripts/sxmo_websearch.sh
Executable file
|
@ -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
|
||||
echo $WMCLASS | grep -i "scripts" && CHOICES="$(echo "
|
||||
Web Search ^ 0 ^ sxmo_websearch.sh
|
||||
Timer ^ 0 ^ sxmo_timermenu.sh
|
||||
Youtube ^ 0 ^ sxmo_youtube.sh video
|
||||
Youtube (Audio) ^ 0 ^ sxmo_youtube.sh audio
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue