From 10cbafac3f1a7c342f8b651171c354e7e4b72417 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 25 Jun 2023 07:40:47 +0530 Subject: cwall: add support for jxl, case insensitive search --- .local/bin/cwall | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.local') 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; -- cgit v1.2.3