From a3dc064fab7db2ae5ed282b4e4ee7c68f2d2854a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Gibrowski=20Fa=C3=A9?= Date: Sun, 18 Feb 2024 14:17:23 -0300 Subject: [PATCH] fix randomize script trying to use directories as images Fix was suggested by @MRSS02. --- example_scripts/swww_randomize.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_scripts/swww_randomize.sh b/example_scripts/swww_randomize.sh index df74c23c..300d3e01 100755 --- a/example_scripts/swww_randomize.sh +++ b/example_scripts/swww_randomize.sh @@ -20,7 +20,7 @@ export SWWW_TRANSITION_STEP=2 INTERVAL=300 while true; do - find "$1" \ + find "$1" -type f \ | while read -r img; do echo "$((RANDOM % 1000)):$img" done \