summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-09-28 15:20:41 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-09-28 15:20:41 +0200
commita1172baeed7f86045035669b14b4168f1977d909 (patch)
tree636f2442db6d46455b0282a43bd9d4ec648c025d
parent157beed26e19fd0de921a5ed3bfe0127f2ba8469 (diff)
[newwal] use print0
-rwxr-xr-xbin/guiscripts/newwal4
1 files changed, 2 insertions, 2 deletions
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)"