summaryrefslogtreecommitdiff
path: root/bin/guiscripts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-xbin/guiscripts/newwal3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/guiscripts/newwal b/bin/guiscripts/newwal
index 3f6532c..b662ec7 100755
--- a/bin/guiscripts/newwal
+++ b/bin/guiscripts/newwal
@@ -7,7 +7,8 @@ walls="$HOME/pics/wallpapers"
walcache="$HOME/.cache/wal"
res="1920x1080"
-# if no (valid) argument, use random wallpaper
+# 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 |