summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-07-14 17:27:19 -0500
committerstkhan <personal@slickd.xyz>2022-07-14 17:27:19 -0500
commitfb4439fe7f1cfbe7f342ebc34b684eeb2e19104c (patch)
treef7cf231fd737f3eeca64ff4820b0d92e6d1e7fd1 /scripts
parente3cb1df20b480599177a364c2524ffe41bd6a81c (diff)
Update sarc script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/sarc.sh9
1 files changed, 6 insertions, 3 deletions
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;;