aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukasz@arcofasiagroup.com>2026-08-20 23:00:32 +0200
committerLukasz Kasprzak <lukasz@arcofasiagroup.com>2026-08-20 23:00:32 +0200
commit2fe328e64067f77070de3ba51f5cff3643afc47f (patch)
tree5e09f994b1de13eb0508e3adadf38ce8b882cab1 /config.h
downloadcolitur-x-2fe328e64067f77070de3ba51f5cff3643afc47f.tar.gz
colitur-x-2fe328e64067f77070de3ba51f5cff3643afc47f.zip
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.
Diffstat (limited to 'config.h')
-rw-r--r--config.h23
1 files changed, 23 insertions, 0 deletions
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 };