JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed quoting and a comment
[dwm.git] / config.arg.h
index 05bcd07..423e935 100644 (file)
@@ -2,16 +2,6 @@
  * See LICENSE file for license details.
  */
 
-#define TAGS \
-const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
-
-#define LAYOUTS \
-static Layout layout[] = { \
-       /* symbol               function */ \
-       { "[]=",                tile }, /* first entry is default */ \
-       { "><>",                versatile }, \
-};
-
 #define BORDERPX               1
 #define FONT                   "-*-terminus-medium-r-*-*-14-*-*-*-*-*-*-*"
 #define NORMBORDERCOLOR                "#333"
@@ -27,6 +17,16 @@ static Layout layout[] = { \
 #define SNAP                   40              /* pixel */
 #define TOPBAR                 True            /* False */
 
+#define TAGS \
+const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
+
+#define LAYOUTS \
+static Layout layout[] = { \
+       /* symbol               function */ \
+       { "[]=",                tile }, /* first entry is default */ \
+       { "><>",                versatile }, \
+};
+
 #define KEYS \
 static Key key[] = { \
        /* modifier                     key             function        argument */ \
@@ -63,7 +63,7 @@ static Key key[] = { \
        { MODKEY|ControlMask|ShiftMask, XK_8,           toggletag,      { .i = 7 } }, \
        { MODKEY|ControlMask|ShiftMask, XK_9,           toggletag,      { .i = 8 } }, \
        { MODKEY|ShiftMask,             XK_c,           killclient,     { 0 } }, \
-       { MODKEY,                       XK_space,       togglelayout,   { 0 } }, \
+       { MODKEY,                       XK_space,       setlayout,      { .i = -1 } }, \
        { MODKEY|ShiftMask,             XK_space,       toggleversatile,{ 0 } }, \
        { MODKEY,                       XK_0,           view,           { .i = -1 } }, \
        { MODKEY,                       XK_1,           view,           { .i = 0 } }, \
@@ -89,7 +89,7 @@ static Key key[] = { \
 
 #define RULES \
 static Rule rule[] = { \
-       /* class:instance:title regex   tags regex      versatile */ \
+       /* class:instance:title regex   tags regex      isversatile */ \
        { "Firefox",                    "3",            False }, \
        { "Gimp",                       NULL,           True }, \
        { "MPlayer",                    NULL,           True }, \