summaryrefslogtreecommitdiff
path: root/dwm-6.3/scripts/dwm-search
diff options
context:
space:
mode:
Diffstat (limited to 'dwm-6.3/scripts/dwm-search')
-rwxr-xr-xdwm-6.3/scripts/dwm-search4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm-6.3/scripts/dwm-search b/dwm-6.3/scripts/dwm-search
index a747424..ff49fc7 100755
--- a/dwm-6.3/scripts/dwm-search
+++ b/dwm-6.3/scripts/dwm-search
@@ -1,7 +1,7 @@
#!/bin/bash
QUERY=$(tac ~/.config/surf/search.txt | sort -u | dmenu -l 20 -p "Search DuckDuckGo: ")
-SEARCH=$(echo $QUERY | sed 's/ /+/g')
+SEARCH=$(echo $QUERY | sed 's/ /+/g; s/-e//')
URL="duckduckgo.com/?q=$SEARCH"
CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL"
@@ -9,6 +9,6 @@ if [[ -z "$SEARCH" ]]; then
exit
else
# saves search to history
- echo $QUERY >> ~/.config/surf/search.txt
+ echo $QUERY | sed 's/-e//' >> ~/.config/surf/search.txt
$CMD
fi