X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=config.anselm.h;h=77af948e6bb315a5ceb059220950e40e643d061e;hb=f77a3d0a62b09f2923b8e2c7e739600ab8283abb;hp=0e0d3be3dce0b445d9fe135d48c0adee130ec94c;hpb=95eae7b9d25602cf5fb25ecbc9d92ead8005c1f8;p=dwm.git diff --git a/config.anselm.h b/config.anselm.h index 0e0d3be..77af948 100644 --- a/config.anselm.h +++ b/config.anselm.h @@ -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,13 +58,13 @@ 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; @@ -72,22 +72,21 @@ setanselmgeoms(void) { mow = mw; moh = mh; - if(dc.drawable != 0) - XFreePixmap(dpy, dc.drawable); - dc.drawable = XCreatePixmap(dpy, root, bw, bh, DefaultDepth(dpy, screen)); - XMoveResizeWindow(dpy, barwin, bx, by, bw, bh); + updatebarpos(); } void anselmgeoms(const char *arg) { setgeoms = setanselmgeoms; - arrange(); + setgeoms(); + setlayout("[]|"); } void defgeoms(const char *arg) { setgeoms = setdefaultgeoms; - arrange(); + setgeoms(); + setlayout("[]="); } /* key definitions */