xbattext(1)
General Commands Manual
xbattext(1)
NAME
xbattext
—
display battery percentage
SYNOPSIS
xbattext |
[...] |
DESCRIPTION
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.
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.
AUTHORS
John Ankarström <john (at) ankarstrom.se>
BUGS
xbattext
cannot distinguish between a
missing foreground color resource and one defined as the color
black
.
December 21,
2024 OpenBSD 7.2