t* dwm + patches URI git clone git://git.codevoid.de/dwm-sdk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 749424d9a66bb5a729a1d8102a1dabd83c7c2b68 DIR parent 1cf45c04ccb3fc17d1b8d7075adb0e2a76f08e8a URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de> Date: Mon, 21 May 2018 08:24:59 +0200 Disable floating layout Diffstat: M config.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) --- DIR diff --git a/config.h b/config.h t@@ -2,7 +2,7 @@ /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int snap = 3232323232323232323232323232323232323232323232323232323232323232; /* snap pixel */ +static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "Droid Sans Mono for Powerline:size=11" }; t@@ -38,9 +38,8 @@ static const int resizehints = 0; /* 1 means respect size hints in tiled resi static const Layout layouts[] = { /* symbol arrange function */ - { "Tiling", tile }, /* first entry is default */ - { "None/Float", NULL }, /* no layout function means floating behavior */ - { "Monocle", monocle }, + { "[T]", tile }, /* first entry is default */ + { "[M]", monocle }, }; /* key definitions */ t@@ -91,13 +90,8 @@ static Key keys[] = { // destroy focused frame { MODKEY|ShiftMask, XK_q, killclient, {0} }, - // set layout [t]tile, [f]loat, [m]onocle - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, - { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, - // toggle last layout - { MODKEY, XK_space, setlayout, {0} }, + { MODKEY, XK_f, setlayout, {0} }, // set frame to floating { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, t@@ -134,7 +128,6 @@ static Key keys[] = { 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} },