switched to ddg until luke fixes 502
This commit is contained in:
parent
fd0fcd1a36
commit
18ca6dae6c
@ -3,6 +3,8 @@
|
|||||||
# Without input, will open DuckDuckGo.com.
|
# Without input, will open DuckDuckGo.com.
|
||||||
# URLs will be directly handed to the browser.
|
# URLs will be directly handed to the browser.
|
||||||
# Anything else, it search it.
|
# Anything else, it search it.
|
||||||
|
mainpage="https://duckduckgo.com"
|
||||||
|
searchpage="https://duckduckgo.com/?q=%s"
|
||||||
browser=${BROWSER:-firefox}
|
browser=${BROWSER:-firefox}
|
||||||
|
|
||||||
if [ -z "$(xclip -o -selection clipboard)" ]; then
|
if [ -z "$(xclip -o -selection clipboard)" ]; then
|
||||||
@ -12,7 +14,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$choice" = "🔍" ]; then
|
if [ "$choice" = "🔍" ]; then
|
||||||
$browser "https://searx.cedars.xyz"
|
$browser "$mainpage"
|
||||||
elif [ "$choice" = "📋" ]; then
|
elif [ "$choice" = "📋" ]; then
|
||||||
$browser "$(xclip -o -selection clipboard)"
|
$browser "$(xclip -o -selection clipboard)"
|
||||||
else
|
else
|
||||||
@ -20,6 +22,6 @@ else
|
|||||||
$browser "$choice"
|
$browser "$choice"
|
||||||
else
|
else
|
||||||
string="$(echo $choice | sed 's/\ /+/g')"
|
string="$(echo $choice | sed 's/\ /+/g')"
|
||||||
$browser "https://searx.cedars.xyz/?q=$string&t=ffab&atb=v1-1"
|
$browser "$(echo "${searchpage}" | sed "s/%s/$string/")"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user