Skip to content

Add top processes and disk space to the system provider #222

Closed

Description

@Seb-GRAF

Problem

The system provider reports CPU and memory, but not which processes use them or how full the startup disk is. Stats and iStat Menus show both. Popups uses a lists.processes table as its example, yet only a script can fill it.

Proposal

  • lists.processes on the system provider: the top processes by CPU, with name, pid, cpu and memory as display strings, as in the popups example. A setting picks the order (cpu or memory) and the row count, defaulting to 5.
  • Disk space for the startup volume: values.diskUsed and values.diskTotal in bytes, values.disk as the used fraction, and fields.disk as a whole percentage, matching memory.
  • Sampling processes costs CPU, since CPU use needs two samples of every process. Compute lists.processes only while something displays it, such as an open popup with a list block that reads it, and leave the rest of the provider's work unchanged.

Both use public APIs: proc_listallpids and proc_pidinfo with PROC_PIDTASKINFO from libproc for processes, and URLResourceValues (volumeTotalCapacity, volumeAvailableCapacityForImportantUsage) for disk space. To verify: without root, proc_pidinfo may not return task info for processes owned by other users, such as WindowServer, which would leave them out of the list.

Possible today

Partly. A script can run ps -Aceo pid,pcpu,rss,comm -r | head and df -k /, as the popups example suggests. It starts processes on every refresh, and its package runs commands.

Related

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

Activity

  1. added
    enhancement
    on Oct 22, 2026
  2. added
    P3
    on Nov 8, 2026
  3. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.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

No one assigned

    Labels

    P3enhancementreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions