aboutsummaryrefslogtreecommitdiffstats
path: root/src/jo_notify.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jo_notify.cpp')
-rw-r--r--src/jo_notify.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/jo_notify.cpp b/src/jo_notify.cpp
deleted file mode 100644
index b357806..0000000
--- a/src/jo_notify.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <jo_lowbat.hpp>
-#include <iostream>
-
-int
-jo_notify(const string batlvl) {
- string str;
-
- str = "notify-send \"Low battery: ";
- str += batlvl;
- str += "%\" \"Please plug in computer\" -u critical -t 15000";
- cout << "Notifying" << endl;
- return system(str.c_str());
-}
-
-int
-jo_speak(const string msg) {
- string str;
-
- str = "echo \"";
- str += msg;
- str += "\" | espeak";
- cout << "Speaking" << endl;
- return system(str.c_str());
-}