X-Git-Url: http://pileus.org/git/?p=lackey;a=blobdiff_plain;f=src%2Fview.c;fp=src%2Fview.c;h=bcca151b38d6b23505357a0917bc1ed4a3fbaf63;hp=8341e97aa7433a428aefec70f5246b152937a837;hb=1c539418e58a005e670b48a83345f80d47445228;hpb=ad41a78c499ae0e2104adf93f431d07c6e91b82a diff --git a/src/view.c b/src/view.c index 8341e97..bcca151 100644 --- a/src/view.c +++ b/src/view.c @@ -83,6 +83,7 @@ view_t *menu[] = { /* Config data */ int COMPACT = 0; +int MORNING = 8; /* Global data */ edit_t EDIT = EDIT_NONE; @@ -299,6 +300,8 @@ void view_config(const char *group, const char *name, const char *key, const cha if (match(group, "view")) { if (match(key, "compact")) { COMPACT = get_bool(value); + } else if (match(key, "morning")) { + MORNING = get_number(value); } else if (match(key, "active")) { for (int i = 0; i < N_ELEMENTS(views); i++) { if (match(value, views[i]->name)) {