diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-01 12:07:35 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-01 12:07:35 +0200 |
commit | dad6249cae8d5d66e0a6b174ed30d78dbbb3a064 (patch) | |
tree | 28fc4a4c2501cf5bb35bfe9984ab19e256f64763 /bin/guiscripts/newwal | |
parent | 70c673a75bf98b1db7b637c9a6d4bd1e336c33d4 (diff) | |
parent | a6d421ed5d752ad4ce945c8de07ecb1e3d16037f (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/guiscripts/newwal')
-rwxr-xr-x | bin/guiscripts/newwal | 4 |
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)" |