Bing Wallpaper Changer is a Python script that automatically updates your wallpaper daily using Bing's daily image.
- Operating System: Linux (tested on Debian-based systems)
- Python: 3.x
Python script can be run manually on windows, installer will only work on linux based systems.
-
Clone or download this repository to your local machine.
git clone https://github.com/dark-apps/bing-wallpaper.git
-
Navigate to the downloaded directory:
cd bing-wallpaper
-
Make the script executable by running the following command:
sudo chmod +x install.sh
-
Run the following command to install the wallpaper changer:
sudo ./install.sh --install
This will prompt you for sudo access and install the necessary files and services.
-
Once the installation is complete, the wallpaper changer will start automatically. It will update your wallpaper with Bing's daily image each day.
I have tried to implement a systemctl service and a cron job for scheduling the task but in both cases the script is unable to access the display server. I also tried exporting the display server export DISPLAY=:0
but that didn't work atleast on my system.
Therefore currently i am going with a desktop entry that will show the script as an "app" in the applications menu which can be launched to change the wallpaper.
The solution was so simple I don't know how i missed it, I just had to create an entry in startup applications for it to run the script on startup.
-
Open a terminal and navigate to the downloaded directory:
cd /path/to/wallpaperchanger
-
Run the following command to uninstall the wallpaper changer:
sudo ./install.sh --uninstall
This will prompt you for sudo access and remove the installed files and services.
By default, the wallpaper changer downloads the daily image from Bing and sets it as your wallpaper. If you wish to customize the behavior, you can modify the main.py
file.
You can change the image source, update frequency, or any other settings according to your preferences.
The wallpaper changer requires the following dependencies to run:
- Python 3
- BeautifulSoup (
pip install beautifulsoup4
) - PyGObject (
pip install PyGObject
)
This project is licensed under the GPL License.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
- The Bing daily image is used under the terms of the Bing Image Archive API.
- The application icon is part of icon pack by Vinceliuice
- The BeautifulSoup library is used for parsing HTML content in Python.
- Project is inspired(not copied) by similar projects by Utkarsh and neffo
Project written by anantdark.