mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 09:48:11 +09:00
fix error
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user