diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-04 17:23:44 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-04 17:23:44 +0100 |
commit | 671e7a3ac09d8eb72561ba27bde328dbda609a7a (patch) | |
tree | ed665bc5364347095fe43563ddc04ccfb19ae62f /src/jo_notify.cpp | |
parent | Added debug msgs (diff) | |
download | lowbat-gnu-671e7a3ac09d8eb72561ba27bde328dbda609a7a.tar.gz lowbat-gnu-671e7a3ac09d8eb72561ba27bde328dbda609a7a.tar.bz2 lowbat-gnu-671e7a3ac09d8eb72561ba27bde328dbda609a7a.tar.xz lowbat-gnu-671e7a3ac09d8eb72561ba27bde328dbda609a7a.tar.zst lowbat-gnu-671e7a3ac09d8eb72561ba27bde328dbda609a7a.zip |
More optimization
Diffstat (limited to 'src/jo_notify.cpp')
-rw-r--r-- | src/jo_notify.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jo_notify.cpp b/src/jo_notify.cpp index 1c54a40..b357806 100644 --- a/src/jo_notify.cpp +++ b/src/jo_notify.cpp @@ -1,4 +1,5 @@ #include <jo_lowbat.hpp> +#include <iostream> int jo_notify(const string batlvl) { @@ -7,6 +8,7 @@ jo_notify(const string batlvl) { str = "notify-send \"Low battery: "; str += batlvl; str += "%\" \"Please plug in computer\" -u critical -t 15000"; + cout << "Notifying" << endl; return system(str.c_str()); } @@ -17,5 +19,6 @@ jo_speak(const string msg) { str = "echo \""; str += msg; str += "\" | espeak"; + cout << "Speaking" << endl; return system(str.c_str()); } |