summaryrefslogtreecommitdiff
path: root/components/battery.c
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-10-31 16:51:20 +0100
committerJulian T <julian@jtle.dk>2020-10-31 16:51:20 +0100
commita20c17de66b417c133883e9b983db6315e532c0a (patch)
treef0ded360ca2a84f64ec37ea521df65cfb263d566 /components/battery.c
parentb14e039639ed28005fbb8bddeb5b5fa0c93475ac (diff)
Added config and patchesHEADmaster
Patches: - Pulseaudio volume - Battery warning
Diffstat (limited to 'components/battery.c')
-rw-r--r--components/battery.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/battery.c b/components/battery.c
index 07b6ac1..f54db93 100644
--- a/components/battery.c
+++ b/components/battery.c
@@ -4,6 +4,9 @@
#include "../util.h"
+// Used for battery warning
+extern void batt_hook(int perc);
+
#if defined(__linux__)
#include <limits.h>
#include <stdint.h>
@@ -40,6 +43,8 @@
return NULL;
}
+ batt_hook(perc);
+
return bprintf("%d", perc);
}