forked from colonelpanic/dotfiles
[Linux] Update wallpaper daemon
This commit is contained in:
parent
6c2d9fc691
commit
0434b75fee
@ -3,13 +3,13 @@
|
|||||||
WALLPAPER_DIR="$HOME/Pictures/wallpaper/"
|
WALLPAPER_DIR="$HOME/Pictures/wallpaper/"
|
||||||
|
|
||||||
random_paper() {
|
random_paper() {
|
||||||
find "$WALLPAPER_DIR"use -type f | shuf -n1
|
find "$WALLPAPER_DIR"use -type l | shuf -n1
|
||||||
}
|
}
|
||||||
|
|
||||||
wallpaper() {
|
wallpaper() {
|
||||||
while true; do
|
while true; do
|
||||||
feh --bg-center $(random_paper) --bg-scale "$WALLPAPER_DIR"transparent1x1.png
|
feh --bg-center $(random_paper) --bg-scale "$WALLPAPER_DIR"transparent1x1.png
|
||||||
sleep 1m
|
sleep 10m
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user