From fb4439fe7f1cfbe7f342ebc34b684eeb2e19104c Mon Sep 17 00:00:00 2001 From: stkhan Date: Thu, 14 Jul 2022 17:27:19 -0500 Subject: Update sarc script --- scripts/sarc.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/sarc.sh b/scripts/sarc.sh index a10f944..f810fae 100755 --- a/scripts/sarc.sh +++ b/scripts/sarc.sh @@ -1,10 +1,12 @@ #!/bin/bash +source ~/.config/sarc/sarc.cfg search_web() { QUERY=$(tac ~/.config/surf/search.txt | sort -u | dmenu -l 20 -p "Search DuckDuckGo: ") SEARCH=$(echo $QUERY | sed 's/ /+/g; s/-e//') URL="duckduckgo.com/?q=$SEARCH" - CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL" + CMD="$sarc_browser $URL" + #CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $URL" if [[ -z "$SEARCH" ]]; then exit @@ -18,7 +20,8 @@ fi goto_website() { 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" + CMD="$sarc_browser $POSTURL" + #CMD="firejail --noprofile --hosts-file=~/.config/surf/ads.txt tabbed -dn tabbed-surf -r 2 surf -e '' $POSTURL" if [[ -z "$URL" ]]; then exit @@ -59,7 +62,7 @@ case $1 in --get_weather) rm -rf ~/.cache/weather_report curl wttr.in > ~/.cache/weather_report - st less -Srf ~/.cache/weather_report;; + $sarc_terminal less -Srf ~/.cache/weather_report;; --search_web) search_web;; --unicode) get_unicode;; -- cgit v1.2.3