feat(system-monitor): add CPU and memory usage gauges in notch header#1083
Open
teszerrakt wants to merge 1 commit intoTheBoredTeam:devfrom
Open
feat(system-monitor): add CPU and memory usage gauges in notch header#1083teszerrakt wants to merge 1 commit intoTheBoredTeam:devfrom
teszerrakt wants to merge 1 commit intoTheBoredTeam:devfrom
Conversation
Add optional system monitor displaying CPU and memory usage as circular gauge rings in the notch header area. Uses macOS Mach kernel APIs to poll host_statistics every 3 seconds with no external dependencies. - SystemMonitorManager: singleton polling CPU ticks and VM stats - SystemMonitorView: color-coded gauge rings (green/yellow/red) with click-to-show popover for detailed stats and Activity Monitor shortcut - SystemMonitorSettingsView: toggle + live preview in Settings - Popover hover persistence prevents notch auto-close while open - Disabled by default, configurable via Settings > System Monitor Closes TheBoredTeam#1082
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional System Monitor feature that displays CPU and memory usage as circular gauge rings in the notch header area. Resolves #1082.
Screenshots
System Monitor in Notch Header & Popover
Settings View
Changes
New Files
boringNotch/managers/SystemMonitorManager.swiftdeinit.boringNotch/components/SystemMonitor/SystemMonitorView.swiftScaleButtonStyle, click-to-show popover (SystemMonitorMenuView), reusableGaugeRingViewsubview, color extension.boringNotch/components/Settings/Views/SystemMonitorSettingsView.swiftModified Files
Constants.swiftshowSystemMonitorDefaults key (Bool, default: false)BoringHeader.swiftSystemMonitorView()before mirror buttonSettingsView.swiftBoringViewModel.swiftisSystemMonitorPopoverActiveproperty + reset inclose()ContentView.swift.onChangeobserverproject.pbxprojLocalizable.xcstringsDesign Decisions
host_statistics/host_statistics64directly, no dependencies onsysctlor third-party libs(active + wired + compressed) / total physicalmatches Activity Monitor's "Memory Used"isSystemMonitorPopoverActiveflag prevents notch auto-close)mach_host_self()port cached and deallocated indeinitto prevent Mach port leakTesting