Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.54 KB

readme.md

File metadata and controls

71 lines (50 loc) · 1.54 KB

Electron As Wallpaper (✨)

set your electron window as wallpaper behind desktop icons


license stars forks issues


Features (⭐)

  • set electron window as wallpaper
  • support transparent window
  • support mouse forwarding
  • support keyboard forwarding

Requirements (⚙️)

Installation (⏬)

npm install electron-as-wallpaper --save

How to use (🌠)

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();

Examples


The End (💘)