aboutsummaryrefslogtreecommitdiff
xbattext(1) General Commands Manual xbattext(1)

xbattextdisplay battery percentage

xbattext [...]

xbattext is a simple X11 program that displays the current battery level on NetBSD. It can be configured on the command line with the regular X options, such as -title and -bg. The foreground color and font are configured by the resources described in CONFIGURATION.

The font and color of the battery display is controlled by the following resources, defined in ~/.Xdefaults or ~/.Xresources:

xbattext*fontList
normal font
xbattext*foreground
normal text color
xbattext*alertFontList
font when battery is low
xbattext*alertForeground
text color when battery is low
xbattext*chargeFontList
font when charging
xbattext*chargeForeground
text color when charging

The battery is considered to be low when it is below 25 percent.

John Ankarström <john (at) ankarstrom.se>

xbattext cannot distinguish between a missing foreground color resource and one defined as the color black.

March 28, 2024 OpenBSD 7.2