[Linux] Update wallpaper daemon

This commit is contained in:
Ivan Malison 2016-09-29 20:36:38 -07:00
parent 6c2d9fc691
commit 0434b75fee
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -3,13 +3,13 @@
WALLPAPER_DIR="$HOME/Pictures/wallpaper/"
random_paper() {
find "$WALLPAPER_DIR"use -type f | shuf -n1
find "$WALLPAPER_DIR"use -type l | shuf -n1
}
wallpaper() {
while true; do
feh --bg-center $(random_paper) --bg-scale "$WALLPAPER_DIR"transparent1x1.png
sleep 1m
sleep 10m
done
}