setup config file

Wires up the xresources the way I like them.
config
Ryan 2023-09-22 02:06:33 -04:00
parent cf94686974
commit a7e80c00df
Signed by: ryan
GPG Key ID: 7D7E2E94267DAD95
2 changed files with 29 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
herbe herbe
config.h
.ccls-cache .ccls-cache

29
config.h Normal file
View File

@ -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 }
};