JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
replaced ISTILE with domwfact/dozoom bools, removed nrules, nlayouts and ltidx, added...
[dwm.git] / config.def.h
index 9271462..2813b3f 100644 (file)
@@ -3,16 +3,19 @@
 /* appearance */
 #define BARPOS                 BarTop /* BarBot, BarOff */
 #define BORDERPX               1
-#define FONT                   "-*-proggyclean-*-*-*-*-*-*-*-*-*-*-*-*"
-#define NORMBORDERCOLOR         "#cccccc"
-#define NORMBGCOLOR             "#dddddd"
-#define NORMFGCOLOR             "#333333"
-#define SELBORDERCOLOR          "#0066cc"
-#define SELBGCOLOR              "#0066cc"
-#define SELFGCOLOR              "#ffffff"
+#define FONT                   "-*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*"
+#define NORMBORDERCOLOR                "#cccccc"
+#define NORMBGCOLOR            "#cccccc"
+#define NORMFGCOLOR            "#000000"
+#define SELBORDERCOLOR         "#0066ff"
+#define SELBGCOLOR             "#0066ff"
+#define SELFGCOLOR             "#ffffff"
 
 /* tagging */
-const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www", NULL };
+const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "www" };
+#define NTAGS (sizeof tags / sizeof tags[0])
+Bool seltags[NTAGS] = {[0] = True};
+Bool prevtags[NTAGS] = {[0] = True};
 Rule rules[] = {
        /* class:instance:title regex   tags regex      isfloating */
        { "Firefox",                    "www",          False },
@@ -20,17 +23,17 @@ Rule rules[] = {
        { "MPlayer",                    NULL,           True },
        { "Acroread",                   NULL,           True },
 };
+#define NRULES (sizeof rules / sizeof rules[0])
 
 /* layout(s) */
-#define ISTILE                 isarrange(tile) /* || isarrange(<custom>) */
 #define MWFACT                 0.6     /* master width factor [0.1 .. 0.9] */
-#define RESIZEHINTS            True    /* False - respect size hints in tiled resizals */
 #define SNAP                   32      /* snap pixel */
 Layout layouts[] = {
        /* symbol               function */
        { "[]=",                tile }, /* first entry is default */
        { "><>",                floating },
 };
+#define NLAYOUTS (sizeof layouts / sizeof layouts[0])
 
 /* key definitions */
 #define MODKEY                 Mod1Mask
@@ -40,7 +43,7 @@ Key keys[] = { \
        { MODKEY,                       XK_p,           spawn, \
                "exe=`dmenu_path | dmenu -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"'" \
                " -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'` && exec $exe" }, \
-       { MODKEY|ShiftMask,             XK_Return,      spawn, "exec xterm" }, \
+       { MODKEY|ShiftMask,             XK_Return,      spawn, "exec uxterm" }, \
        { MODKEY,                       XK_space,       setlayout,      NULL }, \
        { MODKEY,                       XK_b,           togglebar,      NULL }, \
        { MODKEY,                       XK_j,           focusnext,      NULL }, \
@@ -49,6 +52,7 @@ Key keys[] = { \
        { MODKEY,                       XK_l,           setmwfact,      "+0.05" }, \
        { MODKEY,                       XK_m,           togglemax,      NULL }, \
        { MODKEY,                       XK_Return,      zoom,           NULL }, \
+       { MODKEY,                       XK_Tab,         viewprevtag,    NULL }, \
        { MODKEY|ShiftMask,             XK_space,       togglefloating, NULL }, \
        { MODKEY|ShiftMask,             XK_c,           killclient,     NULL }, \
        { MODKEY,                       XK_0,           view,           NULL }, \
@@ -91,3 +95,4 @@ Key keys[] = { \
        { MODKEY|ControlMask|ShiftMask, XK_9,           toggletag,      tags[8] }, \
        { MODKEY|ShiftMask,             XK_q,           quit,           NULL }, \
 };
+#define NKEYS (sizeof keys / sizeof keys[0])