Skip to content

DarkApps/bing-wallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Bing Wallpaper Changer

wall3

Bing Wallpaper Changer is a Python script that automatically updates your wallpaper daily using Bing's daily image.

Compatibility

  • 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.

Installation

  1. Clone or download this repository to your local machine.

    git clone https://github.com/dark-apps/bing-wallpaper.git
    
  2. Navigate to the downloaded directory:

    cd bing-wallpaper
    
  3. Make the script executable by running the following command:

    sudo chmod +x install.sh
    
  4. 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.

  5. Once the installation is complete, the wallpaper changer will start automatically. It will update your wallpaper with Bing's daily image each day.

Note: Script scheduling is a work in progress.

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. Screenshot from 2023-06-13 11-42-07

Update:

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.

TL;DR: Scheduling is working now.

Uninstallation

  1. Open a terminal and navigate to the downloaded directory:

    cd /path/to/wallpaperchanger
    
  2. 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.

Configuration

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.

Dependencies

The wallpaper changer requires the following dependencies to run:

  • Python 3
  • BeautifulSoup (pip install beautifulsoup4)
  • PyGObject (pip install PyGObject)

License

This project is licensed under the GPL License.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

Credits

  • 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

Author:

Project written by anantdark.