X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/a785a0d71213c2ab628778727c4354ad5bb517fb..42cb2bd3be755e8fc358347e085e9609fa54eb57:/config.def.h?ds=inline diff --git a/config.def.h b/config.def.h index 2891780..d62b131 100644 --- a/config.def.h +++ b/config.def.h @@ -9,6 +9,7 @@ #define SELBORDERCOLOR "#0066ff" #define SELBGCOLOR "#0066ff" #define SELFGCOLOR "#ffffff" +#define SNAP 32 /* snap pixel */ /* tagging */ const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; @@ -19,15 +20,13 @@ Rule rules[] = { }; /* layout(s) */ -#define MFACT 0.55 /* master factor [0.1 .. 0.9] */ #define RESIZEHINTS True /* False - respect size hints in tiled resizals */ -#define SNAP 32 /* snap pixel */ - +#define MFACT 0.55 /* master factor [0.1 .. 0.9] */ +#include "tile.c" Layout layouts[] = { - /* symbol function */ - { "[]=", tilev }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ - { "", monocle }, /* TODO: remove this */ + /* symbol arrange geom */ + { "[]=", tile, updatetilegeom }, /* first entry is default */ + { "><>", NULL, }, /* no layout function means floating behavior */ }; /* key definitions */ @@ -37,13 +36,10 @@ Key keys[] = { { MODKEY, XK_p, spawn, "exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" }, { MODKEY|ShiftMask, XK_Return, spawn, "exec uxterm" }, { MODKEY, XK_j, focusnext, NULL }, - { MODKEY|ShiftMask, XK_j, focusnext, "exact" }, { MODKEY, XK_k, focusprev, NULL }, - { MODKEY|ShiftMask, XK_k, focusprev, "exact" }, { MODKEY, XK_h, setmfact, "-0.05" }, { MODKEY, XK_l, setmfact, "+0.05" }, { MODKEY, XK_Return, zoom, NULL }, - { MODKEY, XK_m, togglelayout, "" }, { MODKEY, XK_Tab, viewprevtag, NULL }, { MODKEY|ShiftMask, XK_c, killclient, NULL }, { MODKEY, XK_space, togglelayout, NULL },