yambar-modules-battery(5)

battery - This module reads battery status

Section 5 yambar bookworm source

Description

yambar-modules-battery

NAME

battery - This module reads battery status

DESCRIPTION

This module reads battery status from /sys/class/power_supply and uses udev to monitor for changes.

Note that it is common (and "normal") for batteries to be in the state unknown under certain conditions.

For example, some have been seen to enter the unknown state when charging and the capacity reaches ˜90%. The battery then stays in unknown, rather than charging, until it has been fully charged and enters the state full.

This does not happen with all batteries, and other batteries may enter the state unknown under other conditions.

TAGS

Image grohtml-12082-1.png

CONFIGURATION

Image grohtml-12082-2.png

EXAMPLES

bar:
left:
- battery:
name: BAT0
poll-interval: 30
content:
string: {text: "BAT: {capacity}% {estimate}"}

SEE ALSO

yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)