From 5323fc8b9eb526e942b13806457677a80da98925 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 28 Feb 2022 00:23:56 -0800 Subject: [PATCH] =?UTF-8?q?[herbstluftwm]=20Exclude=20any=20=E2=80=98.org?= =?UTF-8?q?=E2=80=99=20files=20from=20wallpaper=20selection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- herbstluftwm/.config/herbstluftwm/autostart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 }