diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-29 19:21:08 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-29 19:21:08 +0100 |
commit | 2af0e53d6a0f61bea29ca6e1a9f2c9c11e8d6301 (patch) | |
tree | 49444538f449f426a6ea7b3721751fa541e4f893 | |
parent | Makefile update (diff) | |
download | lowbat-gnu-2af0e53d6a0f61bea29ca6e1a9f2c9c11e8d6301.tar.gz lowbat-gnu-2af0e53d6a0f61bea29ca6e1a9f2c9c11e8d6301.tar.bz2 lowbat-gnu-2af0e53d6a0f61bea29ca6e1a9f2c9c11e8d6301.tar.xz lowbat-gnu-2af0e53d6a0f61bea29ca6e1a9f2c9c11e8d6301.tar.zst lowbat-gnu-2af0e53d6a0f61bea29ca6e1a9f2c9c11e8d6301.zip |
README update
-rw-r--r-- | README.org | 9 | ||||
-rw-r--r-- | man/lowbat.1 | 4 | ||||
-rw-r--r-- | src/main.cpp | 2 |
3 files changed, 3 insertions, 12 deletions
@@ -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; |