summaryrefslogtreecommitdiff
path: root/dwm-6.3/scripts/dwm-search
blob: 556f2155cc7f0460bceb340df2eca97a219e0660 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

QUERY=$(tac ~/.config/surf/search.txt | sort -u | dmenu -p "Search DuckDuckGo: ")
SEARCH=$(echo $QUERY | sed 's/ /+/g')
URL="duckduckgo.com/?q=$SEARCH"
CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL"

# saves search to history
echo $QUERY >> ~/.config/surf/search.txt
$CMD