dwm-meillo

diff 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
line diff
     1.1 --- a/dwm.h	Thu Jul 13 18:21:38 2006 +0200
     1.2 +++ b/dwm.h	Thu Jul 13 19:55:07 2006 +0200
     1.3 @@ -7,22 +7,24 @@
     1.4  
     1.5  /********** CUSTOMIZE **********/
     1.6  
     1.7 -#define FONT		"-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
     1.8 -#define BGCOLOR		"DarkSlateGrey"
     1.9 -#define FGCOLOR		"LightSteelBlue"
    1.10 -#define BORDERCOLOR	"SlateGray"
    1.11 -#define WM_PROTOCOL_DELWIN 1
    1.12 +#define FONT				"-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*"
    1.13 +#define BGCOLOR				"#666699"
    1.14 +#define FGCOLOR				"#ffffff"
    1.15 +#define BORDERCOLOR			"#9999CC"
    1.16 +#define MASTERW				52 /* percent */
    1.17 +#define WM_PROTOCOL_DELWIN	1
    1.18  
    1.19  /* tags */
    1.20  enum { Tscratch, Tdev, Tirc, Twww, Twork, TLast };
    1.21  
    1.22  /********** CUSTOMIZE **********/
    1.23  
    1.24 +typedef union Arg Arg;
    1.25  typedef struct DC DC;
    1.26  typedef struct Client Client;
    1.27  typedef struct Fnt Fnt;
    1.28  typedef struct Key Key;
    1.29 -typedef union Arg Arg;
    1.30 +typedef struct Rule Rule;
    1.31  
    1.32  union Arg {
    1.33  	const char **argv;
    1.34 @@ -71,6 +73,12 @@
    1.35  	Client *revert;
    1.36  };
    1.37  
    1.38 +struct Rule {
    1.39 +	const char *class;
    1.40 +	const char *instance;
    1.41 +	char *tags[TLast];
    1.42 +};
    1.43 +
    1.44  struct Key {
    1.45  	unsigned long mod;
    1.46  	KeySym keysym;
    1.47 @@ -85,8 +93,8 @@
    1.48  extern Bool running, issel;
    1.49  extern void (*handler[LASTEvent]) (XEvent *);
    1.50  
    1.51 -extern int tsel, screen, sx, sy, sw, sh, th;
    1.52 -extern char stext[1024], *tags[TLast];
    1.53 +extern int tsel, screen, sx, sy, sw, sh, mw, th;
    1.54 +extern char *tags[TLast];
    1.55  
    1.56  extern DC dc;
    1.57  extern Client *clients, *sel;