diff options
Diffstat (limited to 'dwm.h')
| -rw-r--r-- | dwm.h | 24 |
1 files changed, 16 insertions, 8 deletions
| @@ -7,22 +7,24 @@ | |||
| 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; |
| @@ -71,6 +73,12 @@ struct Client { | |||
| 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; |
| @@ -85,8 +93,8 @@ 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; |
