Skip to content

Add battery health controls to power panel - #8579

Open
patcastle wants to merge 1 commit into
omacom:quattrofrom
patcastle:feature/upower-battery-health
Open

patcastle wants to merge 1 commit into
omacom:quattrofrom
patcastle:feature/upower-battery-health

Conversation

@patcastle

Copy link
Copy Markdown

Summary

  • add an omarchy-battery-limit helper backed by the standard UPower D-Bus API
  • add a Preserve battery health toggle to the power panel when supported
  • display the charging policy selected by UPower and the laptop firmware
  • apply enable or disable to every supported battery without vendor-specific sysfs writes or extra privileged services

Testing

  • bash test/shell.d/battery-limit-test.sh
  • bash test/shell.d/battery-status-test.sh
  • bash test/shell.d/power-test.sh
  • live Omarchy shell restart and power-panel IPC smoke test

Copilot AI balanced review requested due to automatic review settings August 27, 2026 12:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds UPower-backed battery-health controls to the Power panel.

Changes:

  • Adds battery-limit status and control helper.
  • Adds battery-health UI and keyboard navigation.
  • Adds tests and documentation.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
bin/omarchy-battery-limit Implements UPower charge-limit control.
shell/plugins/panels/power/Panel.qml Adds the battery-health toggle and policy display.
shell/plugins/panels/power/manifest.json Updates Power plugin descriptions.
shell/plugins/bar/README.md Documents the enhanced Power panel.
manual/05-the-top-bar.md Documents battery-health behavior.
test/shell.d/battery-limit-test.sh Tests charge-limit behavior.
test/shell.d/power-test.sh Tests Power panel integration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread shell/plugins/panels/power/Panel.qml Resolved
Comment thread shell/plugins/panels/power/Panel.qml Resolved
Comment thread shell/plugins/panels/power/Panel.qml Resolved
@patcastle
patcastle force-pushed the feature/upower-battery-health branch from b9075af to d377765 Compare August 27, 2026 13:03
@Hfanes

Hfanes commented Sep 2, 2026

Copy link
Copy Markdown

this would be great!

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants