From 2fe328e64067f77070de3ba51f5cff3643afc47f Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 20 Aug 2026 23:00:32 +0200 Subject: colitur-x: raw Xlib month grid for colitur Reads colitur emit --format csv on stdin and draws the year as a month grid coloured by liturgical colour, with the selected day's readings below. A separate program on purpose: colitur's dependencies are frozen and its kernel is pure, so a front-end composes with it rather than living in it. Configuration is compile-time, the same model clectio uses. --- config.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config.h (limited to 'config.h') diff --git a/config.h b/config.h new file mode 100644 index 0000000..5b242b4 --- /dev/null +++ b/config.h @@ -0,0 +1,23 @@ +/* colitur-x -- compile-time configuration, suckless style. + * Edit, `make`, done. There is no runtime config file by design. */ + +static const char *font = "monospace:size=10"; +static const char *font_big = "monospace:size=14:bold"; + +/* Liturgical colours, as the engine names them -> what to paint. */ +static const struct { const char *name, *bg, *fg; } palette[] = { + { "white", "#f7f5ef", "#1a1a1a" }, + { "red", "#b03030", "#ffffff" }, + { "violet", "#5a3a78", "#ffffff" }, + { "green", "#2f6b3a", "#ffffff" }, + { "black", "#202020", "#e0e0e0" }, + { "rose", "#d9a0b0", "#1a1a1a" }, +}; + +static const char *col_bg = "#141414"; /* window background */ +static const char *col_grid = "#3a3a3a"; /* cell borders */ +static const char *col_head = "#8a8a8a"; /* weekday headings */ +static const char *col_detail = "#e8e8e8"; /* detail pane text */ +static const char *col_rank1 = "#ffcc55"; /* I-class marker */ + +enum { CELL_W = 122, CELL_H = 74, PAD = 10, HEAD_H = 46, DETAIL_H = 92 }; -- cgit v1.3