This project is a simple tool that generates an image using JavaScript (utilizing a canvas) and sets it as the system wallpaper on Ubuntu 20.04. The process runs in a loop at regular intervals (default: every 15 minutes, configurable).
The project consists of:
main.sh: This shell script triggers the generation of a PNG image using the JavaScript code and sets it as the system wallpaper. It's designed to loop and repeat this process at specified intervals.index.js: Contains the code responsible for generating the image using the canvas.- Startup Configuration: The
main.shscript can be configured to run at system startup by adding it to the startup applications list manually.
To run this project, ensure the following:
- Ubuntu 20.04 or a compatible system.
- nodejs 18.17.1 or similar
- npm 10.2.5 or similar
- Clone the Repository:
git clone https://github.com/vaaghu/snapshot_wallpaper.git
cd snapshot_wallpaper- Install dependiences:
npm install- Permissions:
chmod +x main.sh- Run:
./main.sh