diff options
| author | stkhan <personal@slickd.xyz> | 2022-05-08 17:45:28 +0000 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2022-05-08 17:45:28 +0000 |
| commit | 1958de218756ea968bc2188a7666fc456b33f5dd (patch) | |
| tree | 4668d308be40fb4a422a8ac927e8ab8771da12ab | |
| parent | 76c0a267c76498ab310cb5c2acdb7a32e564f438 (diff) | |
dwm goto script uses -e now, and reddit redirects to old.reddit.com
| -rw-r--r-- | HISTORY | 3 | ||||
| -rwxr-xr-x | dwm-6.3/scripts/dwm-goto | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -1 +1,2 @@ -May 5, 2022 - Switched from sxiv to nsxiv, uses config files now +May 5, 2022 - switched from sxiv to nsxiv, uses config files now +May 7, 2022 - started wayland branch 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 |