summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrandom_wallpaper.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/random_wallpaper.sh b/random_wallpaper.sh
index df0624a..cd5ffe7 100755
--- a/random_wallpaper.sh
+++ b/random_wallpaper.sh
@@ -30,7 +30,12 @@ fi
search_path=$1
# Randomly select a wallpaper to set
-picture=$(find ${search_path} -type f -name '*.jpg' -o -name '*.png' | sort -R | head -n 1)
+picture=$(find ${search_path} -type f \
+ -name '*.jpg' \
+ -o -name '*.JPG' \
+ -o -name '*.png' \
+ -o -name '*.PNG' \
+ | sort -R | head -n 1)
# Set the wallpaper
feh --bg-fill "${picture}"

Generated by cgit