Skip to content

[FEAT] Battery module: display charging state separately from AC connection #2447

Description

@lilianravenet

Description

The {status} option for the battery displays both the AC connection and the charging state. Two separate modules would be more useful than a single string that has to be parsed manually, in my opinion.

Motivation

I think it would make sense to use different placeholders. For example:

  • {charging}: "Charging, Discharging, Full"
  • {ac}: "Connected, Disconnected"

I am interested in helping implement these modules myself if that could help you :)

Additional context

I am using fastfetch 2.65.2 (x86_64), the currently newest version available on Fedora 44.
This issue only seems to happen when the AC is plugged and the battery is not full (< 99%).
Here's a screenshot:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions