/AccentColorSync

Sync accent color of win10 with WallpaperEngine

Primary LanguagePythonMIT LicenseMIT

AccentColorSync

This project can change accent color of win10 and sync with WallpaperEngine.

Usage

Add WebSocket to your webpage-based wallpaper:

let socketURL = "ws://localhost:55001"
let socket = new WebSocket(socketURL);
let socketReopen = function() {
	socket.close();
   	socket = new WebSocket(socketURL);
	socket.onclose = socketReopen;
};
socket.onclose = socketReopen;
// invoke this when you set a new image
let sendCurrent = function(path)
{
	if (socket.readyState == WebSocket.OPEN) {
		try {
			socket.send(decodeURI(path));
		} catch (e) {
			socketReopen();
		}
	}
};

This can be used with wallpapers such as Personal Slideshow. But you can also send other messages to satisfy your demand.

Then run the server:

python main.py

Requirements

  • Python 3
  • Windows 10 (test on 21H2)