JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
some cleanup
[dwm.git] / config.anselm.h
index f546941..aef5947 100644 (file)
@@ -27,8 +27,8 @@ Rule rules[] = {
 
 Layout layouts[] = {
        /* symbol               function        isfloating */
-       { "[]=",                tilev,          False }, /* first entry is default */
-       { "[]|",                tileh,          False },
+       { "[]|",                tileh,          False }, /* first entry is default */
+       { "[]=",                tilev,          False },
        { "><>",                floating,       True },
        { "[M]",                monocle,        True },
 };
@@ -58,33 +58,35 @@ setanselmgeoms(void) {
        mx = wx;
        my = wy;
        mw = 1280;
-       mh = 800;
+       mh = 800 - bh;
 
        /* tile area */
        tx = 1280;
        ty = 0;
-       tw = ww - 1280;
-       th = wh;
+       tw = sw - 1280;
+       th = sh;
 
        /* monocle area */
        mox = mx;
        moy = my;
        mow = mw;
        moh = mh;
-
-       updatebarpos();
 }
 
 void
 anselmgeoms(const char *arg) {
        setgeoms = setanselmgeoms;
-       arrange();
+       setgeoms();
+       updatebarpos();
+       setlayout("[]|");
 }
 
 void
 defgeoms(const char *arg) {
        setgeoms = setdefaultgeoms;
-       arrange();
+       setgeoms();
+       updatebarpos();
+       setlayout("[]=");
 }
 
 /* key definitions */