From d3d4381b296912577550ae1d0310dbc35f7f98cd Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 13 Jan 2024 17:33:24 -0500 Subject: sxhkd housekeeping and debloat --- .local/bin/ducksearch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 .local/bin/ducksearch (limited to '.local/bin/ducksearch') 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" -- cgit v1.2.3