summaryrefslogtreecommitdiff
path: root/.local/bin/ducksearch
blob: d766623ff12ae6f0510410f681f7d7d8f7c165ce (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Gives a dmenu prompt to search Google.
# Without input, will open Google.com.
# URLs will be directly handed to the browser.
# Anything else, it search it.

query=$(printf "                                        " | dmenu -i -p " Search DuckDuckGo")

echo "$query" | head -c 1

$BROWSER "https://duckduckgo.com/?q=$query&t=ffab&atb=v1-1"