diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-04 17:52:39 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-04 17:52:39 +0100 |
commit | a0712d72235f2a6932d216d66e95d1bf711061d0 (patch) | |
tree | e80a2696d4bc58fec23ff3d40185d7a31120ab9d /src | |
parent | Makefile for release (diff) | |
download | lowbat-gnu-a0712d72235f2a6932d216d66e95d1bf711061d0.tar.gz lowbat-gnu-a0712d72235f2a6932d216d66e95d1bf711061d0.tar.bz2 lowbat-gnu-a0712d72235f2a6932d216d66e95d1bf711061d0.tar.xz lowbat-gnu-a0712d72235f2a6932d216d66e95d1bf711061d0.tar.zst lowbat-gnu-a0712d72235f2a6932d216d66e95d1bf711061d0.zip |
Warning level back to 15%
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6a220f8..b9bf375 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,7 +24,7 @@ int main(int argc, const char *argv[]) { batlvl.erase(remove(batlvl.begin(), batlvl.end(), '\n'), batlvl.end()); batlvlint = stoi(batlvl); cout << batlvlint << "%" << endl; - while (batlvlint < 60 && !system("acpi | grep -q Discharging")) { + while (batlvlint < 15 && !system("acpi | grep -q Discharging")) { jo_notify(batlvl); if (argc == 1) { msg = new string("beep beep - low battery"); |