diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 17:33:24 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-01-13 17:33:24 -0500 |
commit | d3d4381b296912577550ae1d0310dbc35f7f98cd (patch) | |
tree | a3268f3474f6af6a7a15ef6a763972e89805a96a /.local/bin/ducksearch | |
parent | 7838c38253bb1a311c8fa96848802402fbf6b9eb (diff) |
sxhkd housekeeping and debloat
Diffstat (limited to '.local/bin/ducksearch')
-rwxr-xr-x | .local/bin/ducksearch | 11 |
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" |