dorkhub

electron-as-wallpaper

set your electron window as wallpaper behind desktop icons

meslzy
Rust9312 forksMITupdated 1 year ago
git clone https://github.com/meslzy/electron-as-wallpaper.gitmeslzy/electron-as-wallpaper

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

more like this

DailyWallpaperHub

多源壁纸聚合平台 · 自动归档 Bing + Unsplash 精选壁纸 · AI 视觉故事生成 · 企业微信推送 · GitHub Pages 在线画廊

Python50

facenox

Open-source, offline-first face recognition attendance platform that runs on any webcam.

TypeScript51

search

search projects, people, and tags