A node script to get the top post for a given subreddit and set it as your desktop background.
- Clone this repo
cd
into the project directorynpm i
node app.js <subreddit name>
Images are saved the to images/
folder in the project directory.
For Windows, this script will not work if run in the Windows Subsystem for Linux shell. Wallpaper detects the environment where the script is run and will not correctly call the Windows executable that changes the background. Pop open Powershell and give it a whirl.
Wallpaper does all of the heavy lifting. This just hits the reddit api and calls wallpaper to set the background.