From 2af0e53d6a0f61bea29ca6e1a9f2c9c11e8d6301 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Dec 2019 19:21:08 +0100 Subject: README update --- README.org | 9 ++------- man/lowbat.1 | 4 ---- src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.org b/README.org index d1dbdbd..75b0c53 100644 --- a/README.org +++ b/README.org @@ -30,19 +30,14 @@ dunst > /dev/null 2>&1 & #+END_SRC ** Options -Two options are available: -- ~--say [MESSAGE]~ allows you to set your own warning message lowbat is active. -- ~--silent~ disables audio warnings. +Only one option is available: +- ~--say [MESSAGE]~ allows you to set an audio warning message when lowbat is active. By default ~lowbat~ doesn't send audio notifications and will only use ~notify-send~. **** Examples of use: #+BEGIN_SRC shell lowbat --say "your custom message" > /dev/null 2>&1 & #+END_SRC -#+BEGIN_SRC shell -lowbat --silent > /dev/null 2>&1 & -#+END_SRC - ** Uninstallation #+BEGIN_SRC shell sudo make uninstall diff --git a/man/lowbat.1 b/man/lowbat.1 index 1c3e01e..122d725 100644 --- a/man/lowbat.1 +++ b/man/lowbat.1 @@ -6,7 +6,6 @@ lowbat \- Lightweight battery warning utility .SH SYNOPSYS .B lowbat [\fB\-\-say\fR \fIMESSAGE\fR] -[\fB\-\-silent\fR] .SH DESCRIPTION \fBlowbat\fR is a small program meant to be run in the background. It warns you using \fBnotify\-send\fR and \fBespeak\fR when your battery is falling under 15%. @@ -15,9 +14,6 @@ It warns you using \fBnotify\-send\fR and \fBespeak\fR when your battery is fall .TP .BR \-\-say =\fIMESSAGE\fR Sets a custom audio message. -.TP -.BR \-\-silent -Disables audio messages. .SH BUGS No known bugs. .SH AUTHOR diff --git a/src/main.cpp b/src/main.cpp index dfcc2f4..e66abf3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,7 +26,7 @@ int main(int argc, const char *argv[]) { } } while (true) { - while (lowbat.jo_fetchBatlvl() < 115 && !lowbat.jo_fetchAcstat()) { + while (lowbat.jo_fetchBatlvl() < 15 && !lowbat.jo_fetchAcstat()) { if (lowbat.jo_notify()) { cout << "Error: could not use notify-send" << endl; return 3; -- cgit v1.2.3