meslzy / electron-as-wallpaper

set your electron window as wallpaper behind desktop icons
MIT License
68 stars 10 forks source link
electron wallpaper

Electron As Wallpaper (✨)

set your electron window as wallpaper behind desktop icons


![license](https://badgen.net/badge/license/MIT/blue) ![stars](https://badgen.net/npm/v/electron-as-wallpaper) ![forks](https://badgen.net/npm/dw/electron-as-wallpaper) ![issues](https://badgen.net/github/open-issues/meslzy/electron-as-wallpaper)

Features (⭐)

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