/********** 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;
Window trans;
Window title;
Client *next;
- Client *prev;
+ Client *revert;
+};
+
+struct Rule {
+ const char *class;
+ const char *instance;
+ char *tags[TLast];
};
struct Key {
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);
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);
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 */