diff options
author | Julian T <julian@jtle.dk> | 2020-10-31 16:51:20 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-10-31 16:51:20 +0100 |
commit | a20c17de66b417c133883e9b983db6315e532c0a (patch) | |
tree | f0ded360ca2a84f64ec37ea521df65cfb263d566 /components/battery.c | |
parent | b14e039639ed28005fbb8bddeb5b5fa0c93475ac (diff) |
Patches:
- Pulseaudio volume
- Battery warning
Diffstat (limited to 'components/battery.c')
-rw-r--r-- | components/battery.c | 5 |
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); } |