summaryrefslogtreecommitdiff
path: root/dwm-6.3/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'dwm-6.3/scripts')
-rwxr-xr-xdwm-6.3/scripts/dwm-goto8
-rwxr-xr-xdwm-6.3/scripts/dwm-search10
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