summaryrefslogtreecommitdiff
path: root/.local/bin/ducksearch
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/ducksearch')
-rwxr-xr-x.local/bin/ducksearch11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/ducksearch b/.local/bin/ducksearch
new file mode 100755
index 0000000..d766623
--- /dev/null
+++ b/.local/bin/ducksearch
@@ -0,0 +1,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"