forked from colonelpanic/dotfiles
[Linux] Add wallpaper service
This commit is contained in:
16
dotfiles/lib/bin/wallpaper.sh
Executable file
16
dotfiles/lib/bin/wallpaper.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
WALLPAPER_DIR="$HOME/Pictures/wallpaper/"
|
||||
|
||||
random_paper() {
|
||||
find "$WALLPAPER_DIR"use -type f | shuf -n1
|
||||
}
|
||||
|
||||
wallpaper() {
|
||||
while true; do
|
||||
feh --bg-center $(random_paper) --bg-scale "$WALLPAPER_DIR"transparent1x1.png
|
||||
sleep 1m
|
||||
done
|
||||
}
|
||||
|
||||
wallpaper
|
Reference in New Issue
Block a user