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[] = { { "bgcolor", STRING, &background_color }, { "bordercolor", STRING, &border_color }, { "fontcolor", STRING, &font_color }, { "fontpattern", STRING, &font_pattern }, { "line_spacing", INTEGER, &padding }, { "padding", INTEGER, &padding }, { "width", INTEGER, &width }, { "border_size", INTEGER, &border_size }, { "pos_x", INTEGER, &pos_x }, { "pos_y", INTEGER, &pos_y }, { "corner", INTEGER, &corner }, { "duration", INTEGER, &duration }, };