Mercurial > aewl
comparison dwm.h @ 51:035617ee18d1
new stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Thu, 13 Jul 2006 19:55:07 +0200 |
parents | 148f25ed0ad7 |
children | d18f6dd0cf23 |
comparison
equal
deleted
inserted
replaced
50:148f25ed0ad7 | 51:035617ee18d1 |
---|---|
5 | 5 |
6 #include <X11/Xlib.h> | 6 #include <X11/Xlib.h> |
7 | 7 |
8 /********** CUSTOMIZE **********/ | 8 /********** CUSTOMIZE **********/ |
9 | 9 |
10 #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*" | 10 #define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*" |
11 #define BGCOLOR "DarkSlateGrey" | 11 #define BGCOLOR "#666699" |
12 #define FGCOLOR "LightSteelBlue" | 12 #define FGCOLOR "#ffffff" |
13 #define BORDERCOLOR "SlateGray" | 13 #define BORDERCOLOR "#9999CC" |
14 #define WM_PROTOCOL_DELWIN 1 | 14 #define MASTERW 52 /* percent */ |
15 #define WM_PROTOCOL_DELWIN 1 | |
15 | 16 |
16 /* tags */ | 17 /* tags */ |
17 enum { Tscratch, Tdev, Tirc, Twww, Twork, TLast }; | 18 enum { Tscratch, Tdev, Tirc, Twww, Twork, TLast }; |
18 | 19 |
19 /********** CUSTOMIZE **********/ | 20 /********** CUSTOMIZE **********/ |
20 | 21 |
22 typedef union Arg Arg; | |
21 typedef struct DC DC; | 23 typedef struct DC DC; |
22 typedef struct Client Client; | 24 typedef struct Client Client; |
23 typedef struct Fnt Fnt; | 25 typedef struct Fnt Fnt; |
24 typedef struct Key Key; | 26 typedef struct Key Key; |
25 typedef union Arg Arg; | 27 typedef struct Rule Rule; |
26 | 28 |
27 union Arg { | 29 union Arg { |
28 const char **argv; | 30 const char **argv; |
29 int i; | 31 int i; |
30 }; | 32 }; |
69 Window title; | 71 Window title; |
70 Client *next; | 72 Client *next; |
71 Client *revert; | 73 Client *revert; |
72 }; | 74 }; |
73 | 75 |
76 struct Rule { | |
77 const char *class; | |
78 const char *instance; | |
79 char *tags[TLast]; | |
80 }; | |
81 | |
74 struct Key { | 82 struct Key { |
75 unsigned long mod; | 83 unsigned long mod; |
76 KeySym keysym; | 84 KeySym keysym; |
77 void (*func)(Arg *arg); | 85 void (*func)(Arg *arg); |
78 Arg arg; | 86 Arg arg; |
83 extern Atom wm_atom[WMLast], net_atom[NetLast]; | 91 extern Atom wm_atom[WMLast], net_atom[NetLast]; |
84 extern Cursor cursor[CurLast]; | 92 extern Cursor cursor[CurLast]; |
85 extern Bool running, issel; | 93 extern Bool running, issel; |
86 extern void (*handler[LASTEvent]) (XEvent *); | 94 extern void (*handler[LASTEvent]) (XEvent *); |
87 | 95 |
88 extern int tsel, screen, sx, sy, sw, sh, th; | 96 extern int tsel, screen, sx, sy, sw, sh, mw, th; |
89 extern char stext[1024], *tags[TLast]; | 97 extern char *tags[TLast]; |
90 | 98 |
91 extern DC dc; | 99 extern DC dc; |
92 extern Client *clients, *sel; | 100 extern Client *clients, *sel; |
93 | 101 |
94 /* client.c */ | 102 /* client.c */ |