From a9950e07cb2b662fa88b32a9e2e277676446a206 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sun, 23 Feb 2025 16:20:47 +0530 Subject: .scripts: few updates --- .scripts/4chget | 4 ++-- .scripts/4chgettofi | 3 ++- .scripts/bts | 3 ++- .scripts/work | 5 +++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.scripts/4chget b/.scripts/4chget index b4a7446..43e4f7c 100755 --- a/.scripts/4chget +++ b/.scripts/4chget @@ -34,10 +34,10 @@ read thread case "$option" in "wg") - wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org -A png,jpg,jpeg -R '*s.*' https://boards.4chan.org/wg/thread/"$thread" ;; + wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org,is2.4channel.org -A png,jpg,jpeg -R '*s.*' https://boards.4chan.org/wg/thread/"$thread" ;; "w") - wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org -A png,jpg,jpeg -R '*s.*' https://boards.4channel.org/w/thread/"$thread" ;; + wget -P "$parentdir/$dir" -nd -r -l 1 -H -D i.4cdn.org,is2.4chan.org,is2.4channel.org -A png,jpg,jpeg -R '*s.*' https://boards.4chan.org/w/thread/"$thread" ;; esac echo "Wallpapers downloaded successfully." diff --git a/.scripts/4chgettofi b/.scripts/4chgettofi index ee88553..a820059 100755 --- a/.scripts/4chgettofi +++ b/.scripts/4chgettofi @@ -5,7 +5,8 @@ while [[ "$option" != "w" && "$option" != "wg" ]]; do option=$(echo -e "wg\nw" | tofi --prompt-text "Is it wallpaper/general (wg) or anime wallpaper (w)?") done -[[ $option == "w" ]] && parentdir="$rootpapesdir/w" && nel="nel" || parentdir="$rootpapesdir/wg" +#[[ $option == "w" ]] && parentdir="$rootpapesdir/w" && nel="nel" || parentdir="$rootpapesdir/wg" +[[ $option == "w" ]] && parentdir="$rootpapesdir/w" || parentdir="$rootpapesdir/wg" while true; do dir=$(tofi --prompt-text "Enter folder name: " --require-match=false