A webui/sync program to change your wallpapers.
The server/webui part acts as the interface for any user to add/delete images.
The client/sync should be ran at intervals to keep the local images in-sync with the server, then use any wallpaper program (like feh) to put your wallpaper from the local collection.
-
You upload images on the webui (you can delete them too).
-
You run the client part and images from the webui server will be synced to your local directory.
-
Then you use your favorite wallpaper program to choose at random in your local synced image directory.
- Learning opportunity.
- Allows multiple computers/friends to share the same collection of wallpapers.
I am but a beginner, I cannot guarantee that there is no exploits.
This is one of the reason I should add a password. On that note, adding some kind of password-protected proxy should be the lazier but simpler option (like NGINX).
- Docker & Docker compose (see the Docker website for installation)
-
Clone the repo git clone
git clone https://github.com/Urpagin/DynamicWallpaper.git
-
Create file
.env
at the same level asdocker-compose.yml
and add those varaibles:
PORT=<exposed port>
NGINX_USER=<user for webui auth>
NGINX_PASSWORD=<password for webui auth>
- Start up the containers
sudo docker compose up -d --build
Tip
The --build
argument rebuilds the container so that code updates will be reflected onto the container.
- Visit
127.0.0.1:<PORT>
to access the app.
Note
Once you've started the app via Docker compose, the wallpapers_server
directory will contain the wallpapers.