summaryrefslogtreecommitdiff
path: root/include/i3status.h
diff options
context:
space:
mode:
authorSimon Elsbrock <simon@iodev.org>2012-08-23 16:42:38 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-08-28 18:05:11 +0200
commit68f438ec9eefbca5d735a1a7897d52e0e8e6f1c7 (patch)
tree47b3009417de351625131bc3525154acf8c70fcf /include/i3status.h
parent3baf27bf1d9b51fa8de3203a64993de2464ed356 (diff)
add additional battery threshold type "percentage"
The battery threshold can now be configured as type "time" or "percentage", but defaults to "time" to prevent unexpected behavior. Also, low_threshold was set to a more reasonable default of 30.
Diffstat (limited to 'include/i3status.h')
-rw-r--r--include/i3status.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h
index dc40c8f..1f9da4d 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -137,7 +137,7 @@ char *auto_detect_format();
void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, const char *format_down);
void print_disk_info(yajl_gen json_gen, char *buffer, const char *path, const char *format);
-void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char *path, const char *format, int threshold, bool last_full_capacity);
+void print_battery_info(yajl_gen json_gen, char *buffer, int number, const char *path, const char *format, int low_threshold, char *threshold_type, bool last_full_capacity);
void print_time(yajl_gen json_gen, char *buffer, const char *format, struct tm *current_tm);
void print_ddate(yajl_gen json_gen, char *buffer, const char *format, struct tm *current_tm);
const char *get_ip_addr();