forked from cococry/ragnar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.h
57 lines (50 loc) · 1.09 KB
/
structs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include <X11/X.h>
#include <X11/Xft/Xft.h>
#include <stdint.h>
// INTERNAL -- IGNORE
typedef enum {
WINDOW_LAYOUT_TILED_MASTER = 0,
WINDOW_LAYOUT_HORIZONTAL_MASTER,
WINDOW_LAYOUT_HORIZONTAL_STRIPES,
WINDOW_LAYOUT_VERTICAL_STRIPES,
WINDOW_LAYOUT_FLOATING
} WindowLayout;
typedef struct {
XftFont* font;
XftColor color;
XftDraw* draw;
} FontStruct;
typedef struct {
uint32_t width, height;
} Monitor;
typedef struct {
const char* cmd;
float refresh_time;
float timer;
char text[512];
bool init;
} BarCommand;
typedef struct {
const char* cmd;
const char* icon;
Window win;
FontStruct font;
uint32_t color;
} BarButton;
typedef enum {
DESIGN_STRAIGHT = 0,
DESIGN_SHARP_LEFT_UP,
DESIGN_SHARP_RIGHT_UP,
DESIGN_SHARP_LEFT_DOWN,
DESIGN_SHARP_RIGHT_DOWN,
DESIGN_ARROW_LEFT,
DESIGN_ARROW_RIGHT,
DESIGN_ROUND_LEFT,
DESIGN_ROUND_RIGHT,
} BarLabelDesign;
typedef struct {
const char* cmd;
uint8_t key;
bool spawned, hidden;
Window win, frame;
} ScratchpadDef;