From 8c8326f793549dcc685f0e4ec3e29f1f3790d6d8 Mon Sep 17 00:00:00 2001 From: Tobias Tschinkowitz Date: Fri, 18 May 2018 14:43:04 +0200 Subject: Add battery_remaining function on OpenBSD Implementation of a battery_remaining function which returns the remaining battery time in HH:MM format. Linux function still needs implementation. Move common code to load_apm_power_info --- config.def.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 9dcd5d6..82a5df5 100644 --- a/config.def.h +++ b/config.def.h @@ -16,6 +16,8 @@ static const char unknown_str[] = "n/a"; * NULL on OpenBSD * battery_state battery charging state battery name (BAT0) * NULL on OpenBSD + * battery_remaining battery remaining HH:MM battery name (BAT0) + * NULL on OpenBSD * cpu_perc cpu usage in percent NULL * cpu_freq cpu frequency in MHz NULL * datetime date and time format string (%F %T) -- cgit v1.2.3