diff --git a/.gitignore b/.gitignore index fba990b..2e64ea4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ herbe -config.h .ccls-cache diff --git a/config.h b/config.h new file mode 100644 index 0000000..64f0e42 --- /dev/null +++ b/config.h @@ -0,0 +1,29 @@ +static const char *background_color = "#3e3e3e"; +static const char *border_color = "#ececec"; +static const char *font_color = "#ececec"; +static const char *font_pattern = "monospace:size=10"; +static unsigned line_spacing = 5; +static unsigned int padding = 15; + +static unsigned int width = 450; +static unsigned int border_size = 2; +static unsigned int pos_x = 30; +static unsigned int pos_y = 60; + +enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; +enum corners corner = TOP_RIGHT; + +static unsigned int duration = 5; /* in seconds */ + +#define DISMISS_BUTTON Button1 +#define ACTION_BUTTON Button3 + +/* Xresources preferences to load at startup */ +ResourcePref resources[] = { + { "background", STRING, &background_color }, + { "accentColor", STRING, &border_color }, + { "foreground", STRING, &font_color }, + { "font", STRING, &font_pattern }, + { "borderpx", INTEGER, &border_size }, + { "spacing", INTEGER, &line_spacing } +};