aboutsummaryrefslogtreecommitdiffstats
path: root/herbstluftwm
diff options
context:
space:
mode:
authorGravatar Tom Willemse2022-02-28 00:23:56 -0800
committerGravatar Tom Willemse2022-02-28 00:23:56 -0800
commit5323fc8b9eb526e942b13806457677a80da98925 (patch)
treed92dc6f5218daef36087609a1b97cbfb34665042 /herbstluftwm
parent629a644c398df438b19065996025ae3bf01f5e89 (diff)
downloadnew-dotfiles-5323fc8b9eb526e942b13806457677a80da98925.tar.gz
new-dotfiles-5323fc8b9eb526e942b13806457677a80da98925.zip
[herbstluftwm] Exclude any ‘.org’ files from wallpaper selection
Diffstat (limited to 'herbstluftwm')
-rwxr-xr-xherbstluftwm/.config/herbstluftwm/autostart3
1 files changed, 2 insertions, 1 deletions
diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart
index c0dce9f..086a70f 100755
--- a/herbstluftwm/.config/herbstluftwm/autostart
+++ b/herbstluftwm/.config/herbstluftwm/autostart
@@ -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
}