diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-04 12:22:21 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-04 12:22:21 +0200 |
commit | ab57868cc4d08068960504a96e8261face249363 (patch) | |
tree | e4ce6e4254763ba4fbce4eca6c7a07e211297077 /bin/guiscripts/newwal | |
parent | dadf390d6a9411e901c085b9f8ad88a3c29824aa (diff) |
added more comment
Diffstat (limited to 'bin/guiscripts/newwal')
-rwxr-xr-x | bin/guiscripts/newwal | 3 |
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 | |