Files
i3-dot/i3/scripts/wallpaper-rotate
T
2026-06-25 11:33:22 +07:00

8 lines
273 B
Bash
Executable File

#!/bin/bash
# Rotate wallpaper every 20 minutes from /sync/images/wallpapers/
while true; do
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
[ -n "$img" ] && feh --bg-fill "$img"
sleep 1200
done