diff --git a/config.def.h b/config.def.h index 643e01f..401ccdb 100644 --- a/config.def.h +++ b/config.def.h @@ -69,11 +69,11 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win #include "layouts.c" static const Layout layouts[] = { /* symbol arrange function */ + { "###", gaplessgrid }, { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, { "HHH", grid }, - { "###", gaplessgrid }, }; /* key definitions */ @@ -126,11 +126,11 @@ static Key keys[] = { { SUPERKEY|ShiftMask, XK_Tab, view, {.ui = -1 } }, // prev tab { SUPERKEY|ControlMask, XK_Tab, view, {.ui = -2 } }, // last tab { SUPERKEY, XK_q, killclient, {0} }, - { SUPERKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { SUPERKEY, XK_f, setlayout, {.v = &layouts[1]} }, - { SUPERKEY, XK_m, setlayout, {.v = &layouts[2]} }, - { SUPERKEY, XK_g, setlayout, {.v = &layouts[3]} }, + { SUPERKEY, XK_t, setlayout, {.v = &layouts[1]} }, + { SUPERKEY, XK_f, setlayout, {.v = &layouts[2]} }, + { SUPERKEY, XK_m, setlayout, {.v = &layouts[3]} }, { SUPERKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[4]} }, + { SUPERKEY, XK_g, setlayout, {.v = &layouts[0]} }, /* { SUPERKEY, XK_space, setlayout, {0} }, */ { SUPERKEY|ShiftMask, XK_space, togglefloating, {0} }, { SUPERKEY, XK_0, view, {.ui = ~0 } }, diff --git a/config.h b/config.h index 643e01f..401ccdb 100644 --- a/config.h +++ b/config.h @@ -69,11 +69,11 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win #include "layouts.c" static const Layout layouts[] = { /* symbol arrange function */ + { "###", gaplessgrid }, { "[]=", tile }, /* first entry is default */ { "><>", NULL }, /* no layout function means floating behavior */ { "[M]", monocle }, { "HHH", grid }, - { "###", gaplessgrid }, }; /* key definitions */ @@ -126,11 +126,11 @@ static Key keys[] = { { SUPERKEY|ShiftMask, XK_Tab, view, {.ui = -1 } }, // prev tab { SUPERKEY|ControlMask, XK_Tab, view, {.ui = -2 } }, // last tab { SUPERKEY, XK_q, killclient, {0} }, - { SUPERKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { SUPERKEY, XK_f, setlayout, {.v = &layouts[1]} }, - { SUPERKEY, XK_m, setlayout, {.v = &layouts[2]} }, - { SUPERKEY, XK_g, setlayout, {.v = &layouts[3]} }, + { SUPERKEY, XK_t, setlayout, {.v = &layouts[1]} }, + { SUPERKEY, XK_f, setlayout, {.v = &layouts[2]} }, + { SUPERKEY, XK_m, setlayout, {.v = &layouts[3]} }, { SUPERKEY|ShiftMask, XK_g, setlayout, {.v = &layouts[4]} }, + { SUPERKEY, XK_g, setlayout, {.v = &layouts[0]} }, /* { SUPERKEY, XK_space, setlayout, {0} }, */ { SUPERKEY|ShiftMask, XK_space, togglefloating, {0} }, { SUPERKEY, XK_0, view, {.ui = ~0 } }, diff --git a/dwm b/dwm index 6ac3660..4c5e39e 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.o b/dwm.o index 4eacc64..d9de5dd 100644 Binary files a/dwm.o and b/dwm.o differ diff --git a/layouts.c b/layouts.c index eed9e4b..deaa7b2 100644 --- a/layouts.c +++ b/layouts.c @@ -1,3 +1,4 @@ +// TODO: FIX GAPS IN GRID LAYOUT void grid(Monitor *m) { unsigned int i, n, cx, cy, cw, ch, aw, ah, cols, rows;