X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=config.def.h;h=e1dd01a6b62ca960bbf0060427aabeed8153c87c;hb=40780bbf713421e97e7c4caffae87fcc3242ad41;hp=1757ec3b3753258fd475e47164132b874dd14d8d;hpb=4a3fd2ee0c4fbac17ea4200f962edf6c6ba54ad1;p=dwm.git diff --git a/config.def.h b/config.def.h index 1757ec3..e1dd01a 100644 --- a/config.def.h +++ b/config.def.h @@ -4,6 +4,7 @@ static unsigned int borderpx = 1; /* border pixel of windows */ static const 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 */ static int topbar = 1; /* 0 means bottom bar */ static const int vertpad = 5; /* vertical padding of bar */ @@ -30,15 +31,17 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + /* class instance title tags mask isfloating isterminal noswallow monitor */ + { "Gimp", NULL, NULL, 0, 1, 0, 0, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 }, + { "St", NULL, NULL, 0, 0, 1, 0, -1 }, + { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */ }; /* layout(s) */ static float mfact = 0.55; /* factor of master area size [0.05..0.95] */ static int nmaster = 1; /* number of clients in master area */ -static int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static int resizehints = 0; /* 1 means respect size hints in tiled resizals */ static const Layout layouts[] = { /* symbol arrange function */ @@ -123,16 +126,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} }, */ };