diff options
| author | stkhan <personal@slickd.xyz> | 2022-04-29 16:10:23 -0500 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2022-04-29 16:10:23 -0500 |
| commit | d4b3ef6f2d1aa93f2e73f371f49efc78d712db45 (patch) | |
| tree | 22f7ce4972e3838f90783c588217a09d3a502400 /dwm-6.3 | |
| parent | ed7f420ff0f7fd71b0ed36ace22deb7f7c41e0e0 (diff) | |
Updated surf, new theme
Diffstat (limited to 'dwm-6.3')
| -rwxr-xr-x | dwm-6.3/scripts/dwm-goto | 8 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-search | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/dwm-6.3/scripts/dwm-goto b/dwm-6.3/scripts/dwm-goto new file mode 100755 index 0000000..2033348 --- /dev/null +++ b/dwm-6.3/scripts/dwm-goto @@ -0,0 +1,8 @@ +#!/bin/sh + +URL=$(cat ~/.config/surf/history.txt | sed 's/^[^ *]* //' | sort -u | dmenu -p "Enter a URL: ") +CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL" + +# saves url to history +echo $URL >> ~/.config/surf/history.txt +$CMD diff --git a/dwm-6.3/scripts/dwm-search b/dwm-6.3/scripts/dwm-search new file mode 100755 index 0000000..556f215 --- /dev/null +++ b/dwm-6.3/scripts/dwm-search @@ -0,0 +1,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 |