summaryrefslogtreecommitdiff
path: root/.local/bin/websearch
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-01-13 17:33:24 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-01-13 17:33:24 -0500
commitd3d4381b296912577550ae1d0310dbc35f7f98cd (patch)
treea3268f3474f6af6a7a15ef6a763972e89805a96a /.local/bin/websearch
parent7838c38253bb1a311c8fa96848802402fbf6b9eb (diff)
sxhkd housekeeping and debloat
Diffstat (limited to '.local/bin/websearch')
-rwxr-xr-x.local/bin/websearch31
1 files changed, 0 insertions, 31 deletions
diff --git a/.local/bin/websearch b/.local/bin/websearch
deleted file mode 100755
index 2de2c75..0000000
--- a/.local/bin/websearch
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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 Google")
-
-echo "$query" | head -c 1
-
-if [ $(echo "$query" | head -c 1) == "\!" ]; then
- $BROWSER "https://duckduckgo.com/?q=$query&t=ffab&atb=v1-1"
-else
- $BROWSER "https://google.com/?q=$query&t=ffab&atb=v1-1"
-fi
-
-
-# # pgrep -x dmenu && exit
-# # pgrep -x dmenu
-
-# choice=$(echo "" | dmenu -i -p " Search DuckDuckGo") || exit 1
-
-# if [ "$choice" = "" ]; then
-# firefox "https://duckduckgo.com"
-# else
-# if echo "$choice" | grep "^(http:\/\/|https:\/\/)?[a-zA-Z0-9]+\.[a-zA-Z]+(/)?.*$"; then
-# firefox "$choice"
-# else
-# firefox "https://duckduckgo.com/?q=$choice&t=ffab&atb=v1-1"
-# fi
-# fi