summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorIakov Davydov <davydov@xkcd.ru>2014-02-05 11:12:47 +0100
committerMichael Stapelberg <michael@stapelberg.de>2014-02-08 20:36:59 +0100
commitc01a8110a46ac084ae1fe2f55048c6bf71f6b57d (patch)
tree95f7bd801e69bf4a6386bd879b593b0e0c48ca24 /i3status.c
parent38938c344474d90ce4c5750efa5c26c893c76c80 (diff)
Add hide_seconds option
fixes: #1134
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/i3status.c b/i3status.c
index b359370..09379e6 100644
--- a/i3status.c
+++ b/i3status.c
@@ -246,6 +246,7 @@ int main(int argc, char *argv[]) {
CFG_STR("threshold_type", "time", CFGF_NONE),
CFG_BOOL("last_full_capacity", false, CFGF_NONE),
CFG_BOOL("integer_battery_capacity", false, CFGF_NONE),
+ CFG_BOOL("hide_seconds", false, CFGF_NONE),
CFG_CUSTOM_COLOR_OPTS,
CFG_END()
};
@@ -480,7 +481,7 @@ int main(int argc, char *argv[]) {
CASE_SEC_TITLE("battery") {
SEC_OPEN_MAP("battery");
- print_battery_info(json_gen, buffer, atoi(title), cfg_getstr(sec, "path"), cfg_getstr(sec, "format"), cfg_getstr(sec, "format_down"), cfg_getint(sec, "low_threshold"), cfg_getstr(sec, "threshold_type"), cfg_getbool(sec, "last_full_capacity"), cfg_getbool(sec, "integer_battery_capacity"));
+ print_battery_info(json_gen, buffer, atoi(title), cfg_getstr(sec, "path"), cfg_getstr(sec, "format"), cfg_getstr(sec, "format_down"), cfg_getint(sec, "low_threshold"), cfg_getstr(sec, "threshold_type"), cfg_getbool(sec, "last_full_capacity"), cfg_getbool(sec, "integer_battery_capacity"), cfg_getbool(sec, "hide_seconds"));
SEC_CLOSE_MAP;
}