From 398c88c87778df1cd4b0ef1a62efbc8c55b783e8 Mon Sep 17 00:00:00 2001 From: stkhan Date: Mon, 23 May 2022 21:23:29 +0000 Subject: goto url dmenu prompt removes -e --- scripts/sarc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') 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 } -- cgit v1.2.3