[herbstluftwm] Exclude any ‘.org’ files from wallpaper selection
This commit is contained in:
parent
629a644c39
commit
5323fc8b9e
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ function random-wallpaper() {
|
||||||
local height=$(echo $rootinfo | grep 'Height:' | sed 's/.*Height: \([[:digit:]]\+\).*/\1/')
|
local height=$(echo $rootinfo | grep 'Height:' | sed 's/.*Height: \([[:digit:]]\+\).*/\1/')
|
||||||
|
|
||||||
find ~/pictures/wallpaper -type f \
|
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
|
| shuf -n 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue