set your electron window as wallpaper behind desktop icons
- set electron window as wallpaper
- support transparent window
- support mouse forwarding
- support keyboard forwarding
- Window OS
- Window 11 (Tested)
- Window 10 (Not Tested)
- Window 8 (Not Tested)
- Window 7 (Not Tested)
- Rust
- Node.js
- Electron
- Electron Rebuild
npm install electron-as-wallpaper --save
import {attach, detach, reset} from "electron-as-wallpaper";
// attach the window to the desktop wallpaper
attach(mainWindow, {
transparent: true,
forwardKeyboardInput: true,
forwardMouseInput: true,
});
// detach the window from the desktop wallpaper
detach(mainWindow);
// reset the wallpaper (restore the original wallpaper)
reset();