sxalert

Simple notification system for X
git clone git://mcdim.xyz/sxalert.git
Log | Files | Refs | README | LICENSE

sxalert.h (723B)


      1 /* sxalert - simple notification program for X
      2  *
      3  * Copyright (C) 2023, 2026 Michail Konstantinos Dimopoulos
      4  * License: GPL-3.0-or-later (see LICENSE)
      5  */
      6 
      7 #ifndef SXALERT_H
      8 #define SXALERT_H
      9 
     10 struct alert {
     11 	int duration;
     12 	char text_color[7];
     13 	char bg_color[7];
     14 	char border_color[7];
     15 	
     16 	int border_width;
     17 	int text_x_padding;
     18 	
     19 	int min_width;
     20 	int max_width;
     21 	
     22 	int x_offset;
     23 	int y_offset;
     24 	
     25 	char *font;
     26 	int text_height;
     27 
     28 	char **lines;
     29 	int lines_len;
     30 };
     31 
     32 struct xrender {
     33 	int scr;
     34 	Visual *visual;
     35 	Colormap cmap;
     36 
     37 	XftColor color;
     38 	XftFont *font;
     39 };
     40 
     41 struct xwin {
     42 	int width;
     43 	int height;
     44 	int x;
     45 	int y;
     46 	XftDraw *draw;
     47 	Window win;	
     48 };
     49 
     50 struct mon {
     51 	int monitor_count;
     52 	XRRMonitorInfo *monitors;
     53 };
     54 
     55 #endif