From 591ee7d3a9003e5e0aa14a39595af4d703226c84 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan <79687674+justsaumit@users.noreply.github.com> Date: Sat, 26 Feb 2022 18:16:35 +0530 Subject: Update 4chget --- scripts/4chget | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/4chget b/scripts/4chget index 1c35160..05ef0b8 100644 --- a/scripts/4chget +++ b/scripts/4chget @@ -1,12 +1,8 @@ #!/bin/bash -echo "Welcome to imageboard web/image scrapping script" -echo "Is it wallpaper/general (wg) or anime wallpaper (w)?" -read option -echo "Enter folder name:" -read dir -echo "Enter thread no.: (#######)" -read thread +option=$(echo -e "wg\nw" | dmenu -p "Is it wallpaper/general (wg) or anime wallpaper (w)?") +thread=$(echo "" | dmenu -p "Enter thread no.: (#######)") +dir=$echo "" | dmenu -p "Enter folder name") if [[ $option = w ]] ; then mkdir -p /home/saumit/Pictures/Wallpaper/4chget/w/$dir else @@ -20,4 +16,3 @@ case "$option" in "w") wget -P Pictures/Wallpaper/4chget/w/$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 ;; esac - -- cgit v1.2.3