summaryrefslogtreecommitdiff
path: root/ar/.local/bin/dmenubrowse
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/dmenubrowse')
-rwxr-xr-xar/.local/bin/dmenubrowse14
1 files changed, 7 insertions, 7 deletions
diff --git a/ar/.local/bin/dmenubrowse b/ar/.local/bin/dmenubrowse
index a7446ac..8d481eb 100755
--- a/ar/.local/bin/dmenubrowse
+++ b/ar/.local/bin/dmenubrowse
@@ -1,30 +1,30 @@
#!/bin/sh
# Use dmenu to choose a search option
-SEARCH_TOOL=$(printf "DuckDuckGo\nSearx\nWebsite\nYouTube" | dmenu -i -p "Which option?")
+SEARCH_TOOL=$(printf "Searx\nDuckDuckGo\nWebsite\nYouTube" | dmenu -i -p "Which option?")
# Exit if no option is selected
[ -z "$SEARCH_TOOL" ] && exit 1
# Determine the command to execute based on the search tool
case "$SEARCH_TOOL" in
-"DuckDuckGo")
- # For DuckDuckGo, run ddgr in the terminal
- TOOL="$TERMINAL -e browse -d"
- ;;
"Searx")
# Searx can be run directly in the browser
TOOL="browse"
;;
+"DuckDuckGo")
+ # For DuckDuckGo, run ddgr in the terminal
+ TOOL="$TERMINAL -e browse -d"
+ ;;
"Website")
# Ask the user for the website
- SITE=$(dmenu -i -p "Which site?")
+ SITE=$(printf "bing\ngoogle\nnaver\nyahoo\nyoutube" | dmenu -i -p "Which site?")
# Exit if no site is provided
[ -z "$SITE" ] && exit 1
# For website searches, run ddgr in the terminal with the website option
- TOOL="$TERMINAL -e browse -w $SITE"
+ TOOL="$TERMINAL -e browse $SITE"
;;
"YouTube")
TOOL="browse -y"