summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-04-19 12:44:22 +0930
committerDaniel Jones <admin@danieljon.es>2020-04-19 12:44:22 +0930
commit0006e59b74507c609d5aea884ea6837801d0da45 (patch)
tree3f579ce7a1da8cb976430fe5d0d3e144acd93877 /config.h
parent89e917d502e6a6f1042643296507336b660c17d9 (diff)
downloadbinstatus-0006e59b74507c609d5aea884ea6837801d0da45.tar.gz
binstatus-0006e59b74507c609d5aea884ea6837801d0da45.zip
added low battery warning that runs a script
Diffstat (limited to 'config.h')
-rw-r--r--config.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.h b/config.h
index 4db0606..87fd568 100644
--- a/config.h
+++ b/config.h
@@ -20,6 +20,12 @@
#define TEMPFILE "/sys/class/thermal/thermal_zone0/temp"
#define MAXLENGTH 256
+#define LOWBATT 65
+#define ARG_LIMIT 10
+#define BUFF_SIZE 512
+
+#define LOWBATTERY "sh -c /home/daniel_j/programming/bash/lowbattery.sh"
+
enum flag
{
NONE = 0,
@@ -42,10 +48,10 @@ struct component
*/
static const struct component components[] ={
/* function flag */
- {currenttime, NORMALTIME|SHOWMERIDIEM},
{battery, NONE},
{charging, NONE},
{cputemp, NONE},
+ {currenttime, NORMALTIME|SHOWMERIDIEM},
};
#endif