summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-06-25 07:40:47 +0530
committersinanmohd <sinan@firemail.cc>2023-06-25 07:40:47 +0530
commit10cbafac3f1a7c342f8b651171c354e7e4b72417 (patch)
tree380c4f2fb904d17048c7a77861540bf079211698
parent0f6916a0e8a54aadc5cb49572ac2fe799ba22ca6 (diff)
cwall: add support for jxl, case insensitive search
-rwxr-xr-x.local/bin/cwall15
1 files changed, 8 insertions, 7 deletions
diff --git a/.local/bin/cwall b/.local/bin/cwall
index 58a5f7e..ad985a9 100755
--- a/.local/bin/cwall
+++ b/.local/bin/cwall
@@ -42,13 +42,14 @@ randimg()
img=
while :; do
img="$(find "$1" \
- -name "*.webp" \
- -o -name "*.jpeg" \
- -o -name "*.jpg" \
- -o -name "*.png" \
- -o -name "*.heif" \
- -o -name "*.heic" \
- -o -name "*.avif" | shuf -n1)"
+ -iname "*.avif" \
+ -o -iname "*.heic" \
+ -o -iname "*.heif" \
+ -o -iname "*.jpeg" \
+ -o -iname "*.jpg" \
+ -o -iname "*.jxl" \
+ -o -iname "*.png" \
+ -o -iname "*.webp" | shuf -n1)"
[ -z "$img" ] &&
break;