summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-04 12:22:21 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-04 12:22:21 +0200
commitab57868cc4d08068960504a96e8261face249363 (patch)
treee4ce6e4254763ba4fbce4eca6c7a07e211297077
parentdadf390d6a9411e901c085b9f8ad88a3c29824aa (diff)
added more comment
-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 |