X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/aa53e39ec0eb39949c5c03d56da08204d14d9ff9..b32cd4454b4608c29699e8e0215a5107ce357679:/config.default.h diff --git a/config.default.h b/config.default.h index ec32e9d..dcf13e3 100644 --- a/config.default.h +++ b/config.default.h @@ -25,14 +25,14 @@ static Rule rule[] = { \ }; /* layout(s) */ -void tile(const char *arg); /* arranges all windows tiled */ +#include "tile.h" #define LAYOUTS \ static Layout layout[] = { \ /* symbol function */ \ { "[]=", tile }, /* first entry is default */ \ { "><>", floating }, \ }; -#define MASTER 0.6 /* 0.1 .. 0.9 */ +#define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */ #define SNAP 32 /* snap pixel */ /* key definitions */ @@ -44,10 +44,10 @@ static Key key[] = { \ { MODKEY, XK_p, spawn, "exe=`dmenu_path | dmenu` && exec $exe" }, \ { MODKEY, XK_space, setlayout, NULL }, \ { MODKEY, XK_b, togglebar, NULL }, \ - { MODKEY, XK_h, tile, "-0.05" }, \ { MODKEY, XK_j, focusclient, "1" }, \ { MODKEY, XK_k, focusclient, "-1" }, \ - { MODKEY, XK_l, tile, "0.05" }, \ + { MODKEY, XK_h, addtomwfact, "-0.05" }, \ + { MODKEY, XK_l, addtomwfact, "0.05" }, \ { MODKEY, XK_m, togglemax, NULL }, \ { MODKEY, XK_Return, zoom, NULL }, \ { MODKEY|ShiftMask, XK_space, togglefloating, NULL }, \