X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=dwm.h;h=ee15949c9070694682629172f0192ed628bc4122;hb=86d9851427710ca0f3ab95ae9b6c20361b56e516;hp=49aa1260cf938bfc51aa2d87fa1f42002345b3d0;hpb=efa7e514012865fcb3e9ea6e7d5b5c87d84353e5;p=dwm.git diff --git a/dwm.h b/dwm.h index 49aa126..ee15949 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; @@ -64,13 +66,20 @@ struct Client { int grav; unsigned int border; long flags; + Bool floating; Window win; - Window trans; Window title; Client *next; Client *revert; }; +struct Rule { + const char *class; + const char *instance; + char *tags[TLast]; + Bool floating; +}; + struct Key { unsigned long mod; KeySym keysym; @@ -83,10 +92,11 @@ extern Window root; extern Atom wm_atom[WMLast], net_atom[NetLast]; extern Cursor cursor[CurLast]; extern Bool running, issel; -extern void (*handler[LASTEvent]) (XEvent *); +extern void (*handler[LASTEvent])(XEvent *); +extern void (*arrange)(Arg *); -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 *clients, *sel; @@ -98,7 +108,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 +119,8 @@ extern void prevc(Arg *arg); extern void max(Arg *arg); extern void floating(Arg *arg); extern void tiling(Arg *arg); -extern void tag(Arg *arg); +extern void ttrunc(Arg *arg); +extern void tappend(Arg *arg); extern void view(Arg *arg); extern void zoom(Arg *arg); extern void gravitate(Client *c, Bool invert);