diff options
author | Aaron Ball <nullspoon@oper.io> | 2017-06-12 23:56:45 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2017-06-12 23:56:45 -0600 |
commit | b0efff2df83158118b1a86598b02d13dd4441e67 (patch) | |
tree | 144fec861659eb9cd7dcbc2c359aeca7698d0089 | |
parent | 0cc77d4f5f093064cc7c24c559f91d83542eff70 (diff) | |
download | bin-b0efff2df83158118b1a86598b02d13dd4441e67.tar.gz bin-b0efff2df83158118b1a86598b02d13dd4441e67.tar.xz |
random_wallpaper:Add uppercase file extensions
-rwxr-xr-x | random_wallpaper.sh | 7 |
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}" |