summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSaumit Dinesan <79687674+justsaumit@users.noreply.github.com>2022-02-26 18:16:35 +0530
committerGitHub <noreply@github.com>2022-02-26 18:16:35 +0530
commit591ee7d3a9003e5e0aa14a39595af4d703226c84 (patch)
tree42a2963e36c640c8e1afe3c3bae4a98f97bd1f4d /scripts
parent80ed9ae112a1fe27dec974ad4d8d2832d2b39dcd (diff)
Update 4chget
Diffstat (limited to 'scripts')
-rw-r--r--scripts/4chget11
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
-