Create a Menubar app with Electron
const menubar = require('menubar.js');
menubar({ /* Config, passed to BrowserWindow */ }, './path/to/tray/icon', 'mode').then(menubar_app => {
// menubar_app.app - Electron app instance
// menubar_app.tray - Electron Tray instance
// menubar_app.window - Electron Window instance
// menubar_app.positioner - Electron Positioner instance
})
Set mode to "detach" to detach the window from the tray icon.
Get more in-depth help on Discord, or ask a question on GitHub
Report feedback & bugs here
Like our work? Support us on Patreon