X-Git-Url: https://git.danieliu.xyz/?p=dwm.git;a=blobdiff_plain;f=config.def.h;h=49dc7bd087d4830695c861cd50f69bb1afb603ac;hp=e1dd01a6b62ca960bbf0060427aabeed8153c87c;hb=HEAD;hpb=40780bbf713421e97e7c4caffae87fcc3242ad41 diff --git a/config.def.h b/config.def.h index e1dd01a..49dc7bd 100644 --- a/config.def.h +++ b/config.def.h @@ -2,7 +2,7 @@ /* appearance */ static unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int gappx = 5; /* gaps between windows */ +static unsigned int gappx = 5; /* gaps between windows */ static unsigned int snap = 32; /* snap pixel */ static const int swallowfloating = 1; /* 1 means swallow floating windows by default */ static int showbar = 1; /* 0 means no bar */ @@ -83,6 +83,7 @@ ResourcePref resources[] = { { "nmaster", INTEGER, &nmaster }, { "resizehints", INTEGER, &resizehints }, { "mfact", FLOAT, &mfact }, + { "gappx", INTEGER, &gappx }, }; static Key keys[] = { @@ -96,14 +97,14 @@ static Key keys[] = { { MODKEY, XK_d, incnmaster, {.i = -1 } }, { MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY, XK_Return, zoom, {0} }, + { MODKEY, XK_space, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY|ShiftMask, XK_c, killclient, {0} }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, - { MODKEY, XK_space, setlayout, {0} }, - { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + /* { MODKEY, XK_space, setlayout, {0} }, */ + { MODKEY|ShiftMask, XK_f, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, { MODKEY, XK_comma, focusmon, {.i = -1 } }, @@ -126,16 +127,16 @@ static Key keys[] = { /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ static Button buttons[] = { /* click event mask button function argument */ - /* { ClkLtSymbol, 0, Button1, setlayout, {0} }, */ - /* { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, */ - /* { ClkWinTitle, 0, Button2, zoom, {0} }, */ - /* { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, */ - //{ ClkClientWin, MODKEY, Button1, movemouse, {0} }, - //{ ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - //{ ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - /* { ClkTagBar, 0, Button1, view, {0} }, */ - /* { ClkTagBar, 0, Button3, toggleview, {0} }, */ - /* { ClkTagBar, MODKEY, Button1, tag, {0} }, */ - /* { ClkTagBar, MODKEY, Button3, toggletag, {0} }, */ + { ClkLtSymbol, 0, Button1, setlayout, {0} }, + { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, + { ClkWinTitle, 0, Button2, zoom, {0} }, + { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, + { ClkClientWin, MODKEY, Button1, movemouse, {0} }, + { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, + { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, + { ClkTagBar, 0, Button1, view, {0} }, + { ClkTagBar, 0, Button3, toggleview, {0} }, + { ClkTagBar, MODKEY, Button1, tag, {0} }, + { ClkTagBar, MODKEY, Button3, toggletag, {0} }, };