diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 13:04:38 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-28 13:04:38 +0900 |
| commit | eb6822fa5d7fe38ea0a3e26ff1034bd1f08bc19f (patch) | |
| tree | 71ba37e5244f097161e012dfa1d24830e44a1764 /ar | |
| parent | 731f6c9d9c8705c6337e2b54bfe49b63b7580df1 (diff) | |
modified bin/browse, modified bin/dmenubrowse
Diffstat (limited to 'ar')
| -rwxr-xr-x | ar/.local/bin/browse | 7 | ||||
| -rwxr-xr-x | ar/.local/bin/dmenubrowse | 14 |
2 files changed, 12 insertions, 9 deletions
diff --git a/ar/.local/bin/browse b/ar/.local/bin/browse index 56c36d9..5deffdd 100755 --- a/ar/.local/bin/browse +++ b/ar/.local/bin/browse @@ -9,7 +9,7 @@ usage() { echo "Options:" echo " -d, --ddgr, ddgr : Use ddgr to search and open the result in a terminal" echo " -h, --help, help : Display this help message" - echo " <search_engine> : (Optional) Search engine to use (google, bing, yahoo, duckduckgo, youtube)" + echo " <search_engine> : (Optional) Search engine to use (bing, duckduckgo, google, naver, yahoo, youtube)" echo " <search_query> : The search term or query to use" } @@ -41,7 +41,7 @@ case "$1" in -h | --help | help) usage && exit 0 ;; -bing | duckduckgo | google | yahoo | youtube) +bing | duckduckgo | google | naver | yahoo | youtube) SEARCH_ENGINE="$1" shift # Remove the search engine from the list ;; @@ -68,6 +68,9 @@ web) duckduckgo) base_url="https://duckduckgo.com/?q=" ;; + naver) + base_url="https://search.naver.com/search.naver?query=" + ;; searx | *) base_url="https://www.searx.thesiah.xyz/search?q=" ;; 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" |
