diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-29 16:02:18 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-29 16:02:18 +0100 |
commit | bee85722628e77c13b16651e17524437019a5e40 (patch) | |
tree | 104246780c0cb411b9bbc4ee5aa1e562ef31ce6d | |
parent | work in progress (diff) | |
download | lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.gz lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.bz2 lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.xz lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.tar.zst lowbat-gnu-bee85722628e77c13b16651e17524437019a5e40.zip |
in progress
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/jo_lowbat.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ OBJS_DIR = obj/ TRGT_DIR = bin/ SRCS_NAME = main.cpp -SRCS_NAME += jo_exec.cpp +#SRCS_NAME += jo_exec.cpp SRCS_NAME += jo_notify.cpp SRCS_NAME += jo_lowbat.cpp diff --git a/src/jo_lowbat.cpp b/src/jo_lowbat.cpp index ab74eaf..96686e5 100644 --- a/src/jo_lowbat.cpp +++ b/src/jo_lowbat.cpp @@ -35,7 +35,7 @@ Lowbat::jo_fetchBatlvl(void) { uint8_t batlvlint; cout << "Fetching batlvl: "; - batlvl = this->jo_exec("acpi | awk '{print $4}' | rev | cut -c 3- | rev"); + batlvl = Lowbat::jo_exec("acpi | awk '{print $4}' | rev | cut -c 3- | rev"); batlvl.erase(remove(batlvl.begin(), batlvl.end(), '\n'), batlvl.end()); batlvlint = stoi(batlvl); cout << batlvlint << "%" << endl; |