X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/95eae7b9d25602cf5fb25ecbc9d92ead8005c1f8..e237b2a76fb3dac1f43b91e5c7b6adb9ef04c9ed:/config.anselm.h?ds=sidebyside diff --git a/config.anselm.h b/config.anselm.h index 0e0d3be..09cccd1 100644 --- a/config.anselm.h +++ b/config.anselm.h @@ -14,24 +14,15 @@ const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; Rule rules[] = { - /* class:instance:title substr tags ref isfloating */ - { "Firefox", tags[8], False }, - { "Gimp", NULL, True }, - { "MPlayer", NULL, True }, - { "Acroread", NULL, True }, + /* class instance title tags ref isfloating */ + { NULL, NULL, "Firefox", tags[8], False }, + { NULL, NULL, "Gimp", NULL, True }, + { NULL, NULL, "MPlayer", NULL, True }, + { NULL, NULL, "Acroread", NULL, True }, }; -/* layout(s) */ -#define RESIZEHINTS True /* False - respect size hints in tiled resizals */ -#define SNAP 32 /* snap pixel */ - -Layout layouts[] = { - /* symbol function isfloating */ - { "[]=", tilev, False }, /* first entry is default */ - { "[]|", tileh, False }, - { "><>", floating, True }, - { "[M]", monocle, True }, -}; +/* geometry function */ +void (*setgeoms)(void) = setdefgeoms; void setanselmgeoms(void) { @@ -58,38 +49,49 @@ 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; - - 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); } void anselmgeoms(const char *arg) { setgeoms = setanselmgeoms; - arrange(); + setgeoms(); + updatebarpos(); + setlayout("[]|"); } void defgeoms(const char *arg) { - setgeoms = setdefaultgeoms; - arrange(); + setgeoms = setdefgeoms; + setgeoms(); + updatebarpos(); + setlayout("[]="); } +/* layout(s) */ +#define RESIZEHINTS True /* False - respect size hints in tiled resizals */ +#define SNAP 32 /* snap pixel */ + +Layout layouts[] = { + /* symbol function isfloating */ + { "[]|", tileh, False }, /* first entry is default */ + { "[]=", tilev, False }, + { "><>", floating, True }, + { "[M]", monocle, True }, +}; + /* key definitions */ #define MODKEY Mod1Mask Key keys[] = {