|
|
|
@ -6,7 +6,7 @@ |
|
|
|
|
btw \- battery watchdog |
|
|
|
|
.SH SYNOPSIS |
|
|
|
|
.SY btw |
|
|
|
|
.OP \-c|\-\-crit value |
|
|
|
|
.OP \-c|\-\-crit level |
|
|
|
|
.OP \-p|\-\-preriod seconds |
|
|
|
|
.OP \-l|\-\-log file |
|
|
|
|
.OP \-j|\-\-syslog |
|
|
|
@ -28,14 +28,15 @@ Print version and exit. |
|
|
|
|
\fB\-h\fR, \fB\-\-help\fR |
|
|
|
|
Print this help message and exit. |
|
|
|
|
.TP |
|
|
|
|
\fB\-c\fR, \fB\-\-crit\fR \fIvalue\fR |
|
|
|
|
Battery critical value in percents [default: 10] |
|
|
|
|
\fB\-c\fR, \fB\-\-crit\fR \fIlevel\fR |
|
|
|
|
Battery critical level in percents [default: 10] |
|
|
|
|
.TP |
|
|
|
|
\fB\-p\fR, \fB\-\-preriod\fR \fIseconds\fR |
|
|
|
|
Battery check out period in seconds [default: 30] |
|
|
|
|
.TP |
|
|
|
|
\fB\-l\fR, \fB\-\-log\fR \fIfile\fR |
|
|
|
|
Log file [default: ~/.cache/btw.log] |
|
|
|
|
.TP |
|
|
|
|
\fB\-j\fR, \fB\-\-syslog\fR |
|
|
|
|
Use logger instead of log file. |
|
|
|
|
.TP |
|
|
|
@ -103,7 +104,7 @@ journalctl -t btw -f |
|
|
|
|
.SH EXAMPLES |
|
|
|
|
.B btw |
|
|
|
|
will send notification at every battery checkout while current battery |
|
|
|
|
level is lower than critical value. For example, with following command: |
|
|
|
|
level is lower than critical level. For example, with following command: |
|
|
|
|
.PP |
|
|
|
|
.in +4m |
|
|
|
|
.EX |
|
|
|
@ -111,7 +112,7 @@ btw -c 15 -p 30 |
|
|
|
|
.EE |
|
|
|
|
.in |
|
|
|
|
.PP |
|
|
|
|
you will recieve notification every 30 seconds until battery is under 10%. |
|
|
|
|
you will recieve notification every 30 seconds until battery is under 15%. |
|
|
|
|
You can set up custom notification text via --summary and --body options. |
|
|
|
|
.PP |
|
|
|
|
Variables can be used in notification: |
|
|
|
|