From 1958de218756ea968bc2188a7666fc456b33f5dd Mon Sep 17 00:00:00 2001 From: stkhan Date: Sun, 8 May 2022 17:45:28 +0000 Subject: dwm goto script uses -e now, and reddit redirects to old.reddit.com --- dwm-6.3/scripts/dwm-goto | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dwm-6.3') diff --git a/dwm-6.3/scripts/dwm-goto b/dwm-6.3/scripts/dwm-goto index c45f9ab..f297b25 100755 --- a/dwm-6.3/scripts/dwm-goto +++ b/dwm-6.3/scripts/dwm-goto @@ -1,8 +1,10 @@ #!/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" +POSTURL=$(echo $URL | sed 's/-e//; s/reddit.com/old.reddit.com/') +CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $POSTURL" +echo $POSTURL if [[ -z "$URL" ]]; then exit else -- cgit v1.2.3