[herbstluftwm] Exclude any ‘.org’ files from wallpaper selection

This commit is contained in:
Tom Willemse 2022-02-28 00:23:56 -08:00
parent 629a644c39
commit 5323fc8b9e

View file

@ -16,7 +16,8 @@ function random-wallpaper() {
local height=$(echo $rootinfo | grep 'Height:' | sed 's/.*Height: \([[:digit:]]\+\).*/\1/')
find ~/pictures/wallpaper -type f \
-wholename "*/${width}x${height}/*" -o -wholename '*/patterns/*' \
\( -wholename "*/${width}x${height}/*" -o -wholename '*/patterns/*' \) \
-not -name '*.org' \
| shuf -n 1
}