Small utility that keeps the Windows desktop and lock screen updated with the daily Bing wallpaper. It fetches the latest image from https://cn.bing.com and writes it to ~/Pictures/today_bing.jpg before applying it at boot time.
- blocks until an Internet connection is available before attempting to download
- writes the image once per calendar day (skips download if the previous file is still from today)
- updates both the desktop wallpaper and Windows lock screen via native Win32/WinRT APIs
- Rust 2024 toolchain (
rustcandcargo) - Windows 10+ (the build links against Win32 and WinRT APIs; Unix builds will exit if they cannot set a wallpaper)
- Network access to
https://cn.bing.comto download the JSON feed and image
cargo build --releasecargo run --releaseThe executable saves the image at ~/Pictures/today_bing.jpg and only downloads again when the existing file’s modified date differs from the current date.
chrono,reqwest,serde_json, and the Windows-specific crates are included inCargo.toml.- This project defaults to a release build (optimized, link-time optimized, and stripped). Use
cargo runif you want faster iteration.