Chapter 9. Introducing the tray module

This chapter covers

  • Building a simple application that lives in the menu bar on macOS or the system tray in Windows.
  • Using Electron’s tray module to create applications that live in the operating system’s menu bar or system tray.
  • Reading from and writing to the system clipboard.
  • Registering global shortcuts that listen for specific keystrokes even when the application is not in use.
  • Triggering native notifications in macOS and Windows 10.

For most of the first half of the book, we worked on Fire Sale. Although its initial feature set in chapter 3 could have conceivably been matched by a traditional, browser-based web application, we spent the subsequent chapters adding functionality outside the scope ...

Get Electron in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.