Skip to content

neacsum/bing_wallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bing Wallpaper

A small program to set the daily Bing wallpaper.

Auto Dark Mode is an app that switches between Windows light and dark themes, setting the light theme during the day and dark theme at night. There are more options but that's the gist of it.

Microsoft Bing Wallpaper app changes the desktop wallpaper daily with some really pretty images. Unfortunately, it checks if the wallpaper has been changed and if it has been, it stops updating it. I couldn't make the two applications work together and that's how this little program came to exist.

Build

Use CPM to build it.

  1. Download cpm program.

  2. Run the following command:

cpm -u git@github.com:neacsum/bing_wallpaper.git bing_wallpaper

Using

If you have Auto Dark Mode installed, edit the scripts.yaml file to contain something like:

Enabled: true
Component:
  Scripts:
  - Name: Bing Wallpaper
    Command: wallpaper
    AllowedSources: [Any]

How it Works

The program downloads a JSON file describing the current Bing wallpaper and changes the current wallpaper to the Bing wallpaper.

The ADM (Auto Dark Mode) script invokes the program but, unfortunately, it sets Windows theme after calling the script. To avoid this problem, the second instance of the program (the one invoked by ADM), just sends a message to the running instance. This one, in turn, waits a bit (0.5 sec seems OK) and then reverts the wallpaper to the Bing wallpaper.

About

Fetch daily Bing wallpaper

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published