Skip to content

Pause scripts and providers while the displays sleep or the screen is locked #219

Closed

Description

@Seb-GRAF

Problem

StableBar pauses scripts and providers only when the Mac itself sleeps. When the displays sleep, the screen is locked, or another user takes over with fast user switching, the Mac often stays awake: a desktop Mac, or a laptop whose display turns off before the system sleeps. Then every interval script and command provider keeps launching processes for a bar nobody can see.

Read on main at 4160f7f; not measured.

Proposal

Treat displays asleep, a locked screen and an inactive session like system sleep: suspend, then resume with SENDER=resume as docs/providers.md describes. Providers whose events a widget subscribes to keep running, as they do now.

Possible today

Partly. whenVisible suspends a provider when none of its widgets is visible, but a bar on a sleeping display still counts as visible.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 22, 2026
  2. added
    P2
    on Nov 8, 2026
  3. assigned and unassigned on Nov 10, 2026
  4. stablebar-releases commented on Nov 11, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.13.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2enhancementreleased

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions