This commit is contained in:
2026-06-25 16:15:58 +07:00
parent 3ed4afab73
commit 99dc13136e
5 changed files with 17 additions and 15 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# Rotate wallpaper every 20 minutes from /sync/images/wallpapers/
wall_dir="${1:?wallpaper directory required}"
while true; do
img=$(find /sync/images/wallpapers/ -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1)
[ -n "$img" ] && feh --bg-fill "$img"
sleep 1200
done