Skip to content

Hide pinned top bar sensors while they read zero - #616

Open
ujjwalpatil20 wants to merge 1 commit into
corecoding:developfrom
ujjwalpatil20:hide-zeros-panel
Open

ujjwalpatil20 wants to merge 1 commit into
corecoding:developfrom
ujjwalpatil20:hide-zeros-panel

Conversation

@ujjwalpatil20

Copy link
Copy Markdown

Adds a Hide in top bar when zero switch to each sensor page in Preferences. Pinned sensors from a group with the switch on leave the top bar while their reading is zero and come back as soon as it changes.

This covers fans that stop at idle, which #236 asked for: "hide the fan … and show it the first time it turns on". It also covers battery rate when it isn't charging or discharging (#287).

  • Every switch starts off, so nothing changes for existing users.
  • The existing Hide zero values setting is untouched and still applies only when sensors are first discovered.
  • A reading counts as zero when its displayed value parses to 0, for example 0 RPM or 0 B/s. Values like N/A and … stay visible.
  • If every pinned sensor is hidden, the default Vitals icon is shown so the menu can still be opened.
  • The setting is per sensor group (Fan, Battery, …), not per individual sensor.

Tested on GNOME Shell 51.1 (Wayland, Fedora 45) with Fan and Battery on.

Adds a per-group "Hide in top bar when zero" switch to each sensor page.
Pinned sensors from enabled groups leave the top bar while their reading
is zero and return when it changes, e.g. fans that stop at idle (corecoding#236).
The default Vitals icon stands in if every pinned sensor is hidden.

The existing "Hide zero values" setting is unchanged.
Copilot AI balanced review requested due to automatic review settings November 13, 2026 00:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants