summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2017-06-12 23:56:45 -0600
committerAaron Ball <nullspoon@oper.io>2017-06-12 23:56:45 -0600
commitb0efff2df83158118b1a86598b02d13dd4441e67 (patch)
tree144fec861659eb9cd7dcbc2c359aeca7698d0089
parent0cc77d4f5f093064cc7c24c559f91d83542eff70 (diff)
downloadbin-b0efff2df83158118b1a86598b02d13dd4441e67.tar.gz
bin-b0efff2df83158118b1a86598b02d13dd4441e67.tar.xz
random_wallpaper:Add uppercase file extensions
-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