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.
Use CPM to build it.
-
Download cpm program.
-
Run the following command:
cpm -u git@github.com:neacsum/bing_wallpaper.git bing_wallpaper
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]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.