master parser.h
ohmu  ·  2026-09-23
 1#include <stdio.h>
 2
 3#define MAXPASTELS 32
 4
 5char *parsekeyvalue(FILE *file, char const *desired_name, char *def);
 6uint32_t getcolor(FILE *f, char *key, uint32_t def);
 7void initconfig(char *custom_config_path);
 8void defconfig(FILE *f);
 9
10uint32_t C_MIX;
11uint32_t C_ROOTBG;
12uint32_t C_BORDER;
13uint32_t C_TAGBG;
14uint32_t C_TAGFG;
15uint32_t C_TAGHLBG;
16uint32_t C_TAGHLFG;
17uint32_t C_TXTBG;
18uint32_t C_TXTFG;
19uint32_t C_TXTHLBG;
20uint32_t C_TXTHLFG;
21uint32_t C_WINBUTTON;
22uint32_t C_WINBTNBORDER;
23uint32_t C_COLBUTTON;
24uint32_t C_TMPBUTTON;
25uint32_t C_SCROLLBG;
26uint32_t C_SCROLLFG;
27uint32_t C_SCROLLBORDER;
28uint32_t C_BUTTON2HL;
29uint32_t C_BUTTON3HL;
30uint32_t C_SCROLLTILEFG;
31uint32_t C_SCROLLTILEBG;
32uint32_t C_COLBTNTILEFG;
33uint32_t C_COLBTNTILEBG;
34
35char *mainfont;
36char *monofont;
37char *fontnames[2];
38char *dumppath;
39char *acmeshell;
40char *customconfigpath;
41char *pastels[MAXPASTELS];
42
43int npastels;
44
45int globalautoindent;
46int bartflag;
47int swapscrollbuttons;
48int ncol;
49int openarg;
50int showdotfiles;
51int ncolnrow;
52
53char *winbtnstyle;
54char *colbtnstyle;
55char *scrollstyle;