Skip to content

Persistent lifetime / daemonize #16

@RainAfterDark

Description

@RainAfterDark

Is your feature request related to a problem? Please describe.

  • No way of closing minimized (currently a commented out toggle), potentially to system tray
  • No way of setting default wallpapers for new outputs / restoring wallpapers of outputs that got reconnected

Describe the solution you'd like

  • A way to close the app minimized (preferably to system tray)
  • A way for autostart to also start minimized
  • An ability for the app to watch for output changes and applying wallpapers in the background

Describe alternatives you've considered

  • As of now, when disconnecting and reconnecting outputs, wallpapers need to be manually reapplied (or restarting the app to restore the state). A bit relevant for folks on the go on their laptops who has external monitors at home / office.
  • Minimizing to system tray would work well with autostart. Makes subsequent opens snappier.

Technical implementation

Electron comes with a system tray impl, which seems straightforward enough. I'm just unsure as to what combination of user settings should be exposed (a toggle for autostart, system tray, minimize on startup, and minimize on close might seem too much? Should the settings be implicit?). As for monitoring output changes, it might be worthwhile to look at how other wallpaper daemons handle this. I've previously used awww (previously swww) which handles restoring wallpapers pretty seamlessly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions