From 22ec67d03addb0ad7b4374431d848a51be6b2318 Mon Sep 17 00:00:00 2001 From: Romam <35203112+Etherum1914@users.noreply.github.com> Date: Sun, 30 May 2021 22:36:26 -0400 Subject: [PATCH 1/3] Minor improvements Allow user to set Limit on a per search basis and shortened the command to display the images --- redyt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/redyt b/redyt index 98d6433..7d53882 100755 --- a/redyt +++ b/redyt @@ -46,7 +46,8 @@ if [ ! -d "$cachedir" ]; then fi # Limit the maximum number of requests to make -limit=100 +#limit=100 # For firm limit +limit=$(printf "10\n100\n150\n200\n300" | dmenu -p "How many queries do you want to make? " -i -l 10) # Allows user to set desired limit # Send a notification $notifier "Redyt" "📩 Downloading your 🖼️ Memes" @@ -69,7 +70,7 @@ wget -P "$cachedir" $imgs $notifier "Redyt" "👍 Download Finished, Enjoy! 😊" # Display the images -sxiv -a "$cachedir"/*.png "$cachedir"/*.jpg +sxiv -a "$cachedir"/{*.png,*.jpg} # Once finished, remove all of the cached images rm "${cachedir:?}"/* From 82ca7a10adb6b1e54e0d35cf6b01b98e6073f2d3 Mon Sep 17 00:00:00 2001 From: Romam <35203112+Etherum1914@users.noreply.github.com> Date: Sun, 30 May 2021 22:37:30 -0400 Subject: [PATCH 2/3] Fixed typo --- redyt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redyt b/redyt index 7d53882..8e3021d 100755 --- a/redyt +++ b/redyt @@ -18,7 +18,7 @@ configdir="${XDG_CONFIG_HOME:-$HOME/.config}/redyt" # if it does not exist defaultsub="linuxmemes" -# If subbreddit.txt does not exist, create it to prevent +# If subreddit.txt does not exist, create it to prevent # the program from not functioning properly [ ! -f "$configdir/subreddit.txt" ] && echo "$defaultsub" >> "$configdir/subreddit.txt" From 937e7a4bfe6bae3aa75cf43901165af5cc0285a1 Mon Sep 17 00:00:00 2001 From: Romam <35203112+Etherum1914@users.noreply.github.com> Date: Sun, 30 May 2021 22:43:31 -0400 Subject: [PATCH 3/3] Changed the wording --- redyt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redyt b/redyt index 8e3021d..e19df30 100755 --- a/redyt +++ b/redyt @@ -47,7 +47,7 @@ fi # Limit the maximum number of requests to make #limit=100 # For firm limit -limit=$(printf "10\n100\n150\n200\n300" | dmenu -p "How many queries do you want to make? " -i -l 10) # Allows user to set desired limit +limit=$(printf "10\n100\n150\n200\n300" | dmenu -p "Queries to make: " -l 5) # Allows user to set desired limit # Send a notification $notifier "Redyt" "📩 Downloading your 🖼️ Memes"