This script changes the wallpaper after a configurable period of time
- LXDE
- pcmanfm (must handle the wallpaper)
- bash ($RANDOM required)
The script can handle the following signals:
signal | effect |
---|---|
SIGUSR1 | next wallpaper |
SIGHUP | reload image list from IMAGE_DIR |
You can send a signal simply by using the kill command (all examples send SIGUSR1):
kill -SIGUSR1 <PID>
kill -USR1 <PID>
kill -10 <PID>
The following bash variables can be set directly in the script or using a config file (~/.config/wallpaperchanger.conf). You have to follow the correct bash syntax (without spaces around the equal sign, e.g. VAR=VAL).
option | default value | description |
---|---|---|
IMAGE_DIR | /home/marco/Bilder/wallpaper | directory which contains the wallpapers |
TIMEOUT | 900 | time in seconds after the wallpaper gets changed |
SHUFFLE | 1 | level of randomness: 0 => in order 1 => random order, no duplicates 2 => completely random |
LOGFILE | ${HOME}/.wallpaperchanger.log | path to log file |
This script is provided unter the terms of the MIT license.