X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.h;h=8af63f00b535d4b7595a7f781d351bdc605ca1c4;hp=cf51c3661dd860a34b37c0c886bdd015216d5240;hb=7fe717c29f9dafc4fc38313adbbb7c85619dec69;hpb=c47da143bdf5b4e3924a411f42648d4b3e86ff00 diff --git a/dwm.h b/dwm.h index cf51c36..8af63f0 100644 --- a/dwm.h +++ b/dwm.h @@ -7,22 +7,24 @@ /********** CUSTOMIZE **********/ -#define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*" -#define BGCOLOR "DarkSlateGrey" -#define FGCOLOR "LightSteelBlue" -#define BORDERCOLOR "SlateGray" -#define WM_PROTOCOL_DELWIN 1 +#define FONT "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*" +#define BGCOLOR "#666699" +#define FGCOLOR "#ffffff" +#define BORDERCOLOR "#9999CC" +#define MASTERW 52 /* percent */ +#define WM_PROTOCOL_DELWIN 1 /* tags */ enum { Tscratch, Tdev, Tirc, Twww, Twork, TLast }; /********** CUSTOMIZE **********/ +typedef union Arg Arg; typedef struct DC DC; typedef struct Client Client; typedef struct Fnt Fnt; typedef struct Key Key; -typedef union Arg Arg; +typedef struct Rule Rule; union Arg { const char **argv; @@ -68,7 +70,13 @@ struct Client { Window trans; Window title; Client *next; - Client *prev; + Client *revert; +}; + +struct Rule { + const char *class; + const char *instance; + char *tags[TLast]; }; struct Key { @@ -85,11 +93,11 @@ extern Cursor cursor[CurLast]; extern Bool running, issel; extern void (*handler[LASTEvent]) (XEvent *); -extern int tsel, screen, sx, sy, sw, sh, th; -extern char stext[1024], *tags[TLast]; +extern int tsel, screen, sx, sy, sw, sh, mw, th; +extern char *tags[TLast]; extern DC dc; -extern Client *cstart, *cend, *csel; +extern Client *clients, *sel; /* client.c */ extern void manage(Window w, XWindowAttributes *wa); @@ -98,7 +106,7 @@ extern Client *getclient(Window w); extern void focus(Client *c); extern void update_name(Client *c); extern void draw_client(Client *c); -extern void resize(Client *c); +extern void resize(Client *c, Bool inc); extern void update_size(Client *c); extern Client *gettitle(Window w); extern void craise(Client *c); @@ -109,7 +117,9 @@ extern void prevc(Arg *arg); extern void max(Arg *arg); extern void floating(Arg *arg); extern void tiling(Arg *arg); -void tag(Arg *arg); +extern void tag(Arg *arg); +extern void view(Arg *arg); +extern void zoom(Arg *arg); extern void gravitate(Client *c, Bool invert); /* draw.c */