random-wallpaper: Add .current-wallpaper
It resides in the user's runtime directory.
This commit is contained in:
parent
471a567e40
commit
ab6f891d44
|
|
@ -11,6 +11,7 @@ interval_secs="$(echo "60 * ${INTERVAL}" | bc)"
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
wallpaper="$(fd '\.(png|jpe?g|gif)$' "$WALLPAPER_DIR" --type f --type l -L | shuf | head -1)"
|
wallpaper="$(fd '\.(png|jpe?g|gif)$' "$WALLPAPER_DIR" --type f --type l -L | shuf | head -1)"
|
||||||
|
ln -sf "$wallpaper" "/run/user/$(id -u)/.current-wallpaper"
|
||||||
swww img "$wallpaper"
|
swww img "$wallpaper"
|
||||||
sleep "$interval_secs"
|
sleep "$interval_secs"
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue