aboutsummaryrefslogtreecommitdiff
path: root/xbattext.1
blob: 7460053040275a6e484393dcd144f6835d4d4c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.Dd $Mdocdate$
.Dt xbattext 1
.Os
.Sh NAME
.Nm xbattext
.Nd display battery percentage
.Sh SYNOPSIS
.Nm
.Op Ar ...
.Sh DESCRIPTION
.Pp
.Nm
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
.Fl title
and
.Fl bg .
The foreground color and font are configured by the resources
described in
.Sx CONFIGURATION .
.Sh CONFIGURATION
.Pp
The font and color of the battery display is controlled
by the following resources,
defined in
.Pa ~/.Xdefaults
or
.Pa ~/.Xresources :
.Bl -tag -offset indent
.It xbattext*fontList
normal font
.It xbattext*foreground
normal text color
.It xbattext*alertFontList
font when battery is low
.It xbattext*alertForeground
text color when battery is low
.It xbattext*chargeFontList
font when charging
.It xbattext*chargeForeground
text color when charging
.El
.Pp
The battery is considered to be low
when it is below 25 percent.
.Sh AUTHORS
.Pp
.An John Ankarström Aq Mt "john (at) ankarstrom.se"
.Sh BUGS
.Pp
.Nm
cannot distinguish between a missing foreground color resource
and one defined as the color
.Li black .