From b0efff2df83158118b1a86598b02d13dd4441e67 Mon Sep 17 00:00:00 2001 From: Aaron Ball Date: Mon, 12 Jun 2017 23:56:45 -0600 Subject: random_wallpaper:Add uppercase file extensions --- random_wallpaper.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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}" -- cgit v1.2.3