Skip to content

The battery percentage is not accurate enough #7135

@bonfiresh

Description

@bonfiresh

Bug Report

Current Behavior

Battery percentage number always less than actually at the same time

Expected Behavior

Battery percentage number equal to actual

Additional context/Screenshots

Image Image

Possible Solution

Add a option to adjust:

[[battery.display]]
capacity_adjust +5

Environment

  • Starship version: 1.24.1
  • zsh version: zsh 5.9 (x86_64-apple-darwin21.6.0)
  • Operating system: Mac OS 12.7.6
  • Terminal emulator: kitty 0.44.0
  • Git Commit Hash: 378f3e4
  • Branch/Tag: master
  • Rust Version: rustc 1.91.1 (ed61e7d7e 2025-11-07)
  • Rust channel: stable-aarch64-apple-darwin release
  • Build Time: 2025-11-16 11:51:59 +00:00

Starship Configuration

command_timeout = 5000
format = '$all$battery$directory$character'
add_newline = false

[line_break]
disabled = true

[[battery.display]]
threshold = 100
style = "bold green"

[[battery.display]]
threshold = 60
style = "bold red"

Metadata

Metadata

Assignees

No one assigned

    Labels

    🌊 upstreamDepends on an upstream solve beyond starship🐛 bugSomething isn't working as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions