diff options
| author | stkhan <personal@slickd.xyz> | 2022-05-23 21:23:29 +0000 |
|---|---|---|
| committer | stkhan <personal@slickd.xyz> | 2022-05-23 21:23:29 +0000 |
| commit | 398c88c87778df1cd4b0ef1a62efbc8c55b783e8 (patch) | |
| tree | 4c3ed3beda833b0781bd35bfa35ae79a4993512c /scripts/sarc.sh | |
| parent | 513a68141b4737e9ab69b7cbcda7d36f983fa3b6 (diff) | |
goto url dmenu prompt removes -e
Diffstat (limited to 'scripts/sarc.sh')
| -rwxr-xr-x | scripts/sarc.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/sarc.sh b/scripts/sarc.sh index 48d721d..a10f944 100755 --- a/scripts/sarc.sh +++ b/scripts/sarc.sh @@ -16,7 +16,7 @@ fi } goto_website() { - URL=$(cat ~/.config/surf/history.txt | sed 's/^[^ *]* //' | sort -u | dmenu -p "Enter a URL: ") + URL=$(cat ~/.config/surf/history.txt | sed 's/^[^ *]* //; s/-e//' | sort -u | dmenu -p "Enter a 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" @@ -24,7 +24,7 @@ goto_website() { exit else # saves url to history - echo $URL >> ~/.config/surf/history.txt + echo $(echo $URL | sed 's/-e//') >> ~/.config/surf/history.txt $CMD fi } |