fix error

This commit is contained in:
2025-10-29 21:13:44 +09:00
parent a59676dd23
commit f0c302ac49
3 changed files with 39 additions and 41 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
WALLPAPERS_DIR="${HOME}/wallpapers"
mapfile -t files < <(find "$WALLPAPERS_DIR" -type f 2>/dev/null)
[ "${#files[@]}" -eq 0 ] && exit 0
file="$(printf '%s\n' "${files[@]}" | shuf -n 1)"
exec swww img "$file" --transition-type grow --transition-step 90