Skip to content

Automate your desktop's ambiance with the Daily Desktop Wallpaper Changer. Enhance productivity and creativity by scheduling daily updates of stunning wallpapers from Wallhaven, tailored to your preferences. Customize paths easily and enjoy a fresh backdrop effortlessly. Elevate your desktop experience today!

Notifications You must be signed in to change notification settings

shreyanshi-bhatt/Daily-Desktop-Wallpaper-Changer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Everyday-Windows-Wallpaper-Changer (Python Automation Project) ✨

Automate your desktop's ambiance with the Daily Windows Desktop Wallpaper Changer. Enhance productivity and creativity by scheduling daily updates of stunning wallpapers from Wallhaven, tailored to your preferences. Elevate your desktop experience today!

❗❗ Note: Wallpapers are chosen randomly, and customization of the main Wallhaven URL is possible. Be sure to adjust the web scraping code if the HTML structure changes after customization.

Installation 💻

  1. Set Up:

    • Clone this repository to your local machine. git clone https://github.com/shreyanshi-bhatt/Daily-Desktop-Wallpaper-Changer.git
    • Install necessary Python dependencies (requests, beautifulsoup4, schedule, etc).
  2. Change Paths in main.py:

    • Open main.py in a text editor.
    • Modify the WALLPAPER_FOLDER and DEFAULT_IMAGE_PATH variables to set your desired folder path for wallpapers and the fallback wallpaper respectively.
  3. Copy the Script Path (Local Path eg. C:\path\to\main.py):

    • Copy the local path of your (edited) main.py file to use it in the configuration phase in the next step.
  4. Set Up Task Scheduler:

    • Use your operating system's task scheduler to automate the script execution.
    • Schedule the script to run daily at a specific time to update your desktop wallpaper automatically.
    • Here're the steps:

📂 Open Task Scheduler:

  • Press Win + R to open the Run dialog.
  • Type taskschd.msc and press Enter to open the Task Scheduler.

⭐ Create a New Task:

  • In the Task Scheduler, go to Action > Create Task....
  • Name your task (e.g., "Daily Wallpaper Changer").
  • Optionally, provide a description for the task.

🔥 Configure Triggers:

  • Go to the Triggers tab and click New....
  • Choose how often you want the task to run (daily, weekly, etc.).
  • Set the start time (e.g., daily at 5:00 AM).

🤖 Configure Actions:

  • Go to the Actions tab and click New....
  • Set the action to Start a program.
  • Browse and select the Python executable (python.exe), and in the Add arguments field, enter the path to your script (C:\path\to\python.exe C:\path\to\main.py).

🛠 Set Conditions and Settings:

  • Optionally, configure conditions under the Conditions tab (e.g., power settings, idle conditions).
  • Review settings under the Settings tab and adjust as necessary.

✅ Save and Test:

  • Click OK to save the task.
  • Right-click on the task in the Task Scheduler and select Run to test if it executes correctly (change the time of wallpaper updation to current time for testing purpose).

👩🏻‍💻 Monitor and Debug:

  • Check the Last Run Result column in Task Scheduler to verify if the task ran successfully.
  • Monitor the task initially to ensure it changes the wallpaper as expected and handles any errors appropriately.

Old Wallpaper:

image

Test Output:

image

New Wallpaper:

image

Voila! Please don't forget to star ⭐ the repo if it helped you. Thanks - SB 🙋🏻‍♀️

About

Automate your desktop's ambiance with the Daily Desktop Wallpaper Changer. Enhance productivity and creativity by scheduling daily updates of stunning wallpapers from Wallhaven, tailored to your preferences. Customize paths easily and enjoy a fresh backdrop effortlessly. Elevate your desktop experience today!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages