set your electron window as wallpaper behind desktop icons
- [x] set electron window as wallpaper
- [x] support transparent window
- [x] support mouse forwarding
- [x] support keyboard forwarding
-
npm install electron-as-wallpaper --save
-
import {attach, detach, refresh} from "electron-as-wallpaper"; // or const {attach, detach, refresh} = require("electron-as-wallpaper"); attach(mainWindow, { transparent: true, forwardKeyboardInput: true, forwardMouseInput: true, }); detach(mainWindow); // if the window closed before detach, you can call refresh refresh();