diff options
author | Tobias Tschinkowitz <he4d@posteo.de> | 2018-05-18 14:43:04 +0200 |
---|---|---|
committer | Aaron Marcher <me@drkhsh.at> | 2018-05-18 15:25:42 +0200 |
commit | fd49e27c785db2b395b2772afab5b12a14930b84 (patch) | |
tree | 25f92ed7809ff58df86d84e8f6039a1f6c0f6381 /config.def.h | |
parent | 9263b11679bb3036b9b76cbe1ebf4ade75477fc3 (diff) |
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
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) |