diff options
-rw-r--r-- | scripts/4chget | 11 |
1 files 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 - |