From a1172baeed7f86045035669b14b4168f1977d909 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:20:41 +0200 Subject: [newwal] use print0 --- bin/guiscripts/newwal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/guiscripts') diff --git a/bin/guiscripts/newwal b/bin/guiscripts/newwal index b913552..32d3db6 100755 --- a/bin/guiscripts/newwal +++ b/bin/guiscripts/newwal @@ -10,8 +10,8 @@ res="1920x1080" # if no (valid) argument, use find any image with $res resolution # and take a random one test -f "${wal:=$(realpath "$1")}" || - wal="$(find "$walls" -type f | - xargs identify | + wal="$(find "$walls" -type f -print0 | + xargs -0 identify | grep "$res" | awk '{print $1}' | shuf -n 1)" -- cgit v1.2.3