From 5323fc8b9eb526e942b13806457677a80da98925 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 28 Feb 2022 00:23:56 -0800 Subject: [herbstluftwm] Exclude any ‘.org’ files from wallpaper selection --- herbstluftwm/.config/herbstluftwm/autostart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'herbstluftwm/.config') 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 } -- cgit v1.2.3-54-g00ecf