<commit_before>--- a/config.h	Sun Apr 29 15:00:00 2018
+++ b/config.h	Sun Apr 29 14:00:00 2018
@@ -2,22 +2,24 @@
 
 /* appearance */
 static const char *fonts[] = {
-	"monospace:size=10"
+	"Liberation Mono:size=24"
 };
-static const char dmenufont[]       = "monospace:size=10";
-static const char normbordercolor[] = "#444444";
-static const char normbgcolor[]     = "#222222";
-static const char normfgcolor[]     = "#bbbbbb";
-static const char selbordercolor[]  = "#005577";
-static const char selbgcolor[]      = "#005577";
-static const char selfgcolor[]      = "#eeeeee";
+static const char dmenufont[]       = "Liberation Mono:size=24";
+
+static const char normbordercolor[] = "#002b36";
+static const char normbgcolor[]     = "#002b36";
+static const char normfgcolor[]     = "#657b83";
+static const char selbordercolor[]  = "#93a1a1";
+static const char selbgcolor[]      = "#93a1a1";
+static const char selfgcolor[]      = "#002b36";
+
 static const unsigned int borderpx  = 1;        /* border pixel of windows */
 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 */
 
 /* tagging */
-static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+static const char *tags[] = { "a", "b", "c", "d", "0" };
 
 static const Rule rules[] = {
 	/* xprop(1):
@@ -110,4 +112,3 @@
 	{ ClkTagBar,            MODKEY,         Button1,        tag,            {0} },
 	{ ClkTagBar,            MODKEY,         Button3,        toggletag,      {0} },
 };
-
<commit_msg>Add dwm grid mode<commit_after>--- a/config.h	Sun Apr 29 15:00:00 2018
+++ b/config.h	Sun Apr 29 14:00:00 2018
@@ -1,23 +1,50 @@
 /* See LICENSE file for copyright and license details. */
 
+void grid(Monitor *m) {
+        unsigned int i, n, cx, cy, cw, ch, aw, ah, cols, rows;
+        Client *c;
+
+        for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next))
+                n++;
+
+        /* grid dimensions */
+        for(rows = 0; rows <= n/2; rows++)
+                if(rows*rows >= n)
+                        break;
+        cols = (rows && (rows - 1) * rows >= n) ? rows - 1 : rows;
+
+        /* window geoms (cell height/width) */
+        ch = m->wh / (rows ? rows : 1);
+        cw = m->ww / (cols ? cols : 1);
+        for(i = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next)) {
+                cx = m->wx + (i / rows) * cw;
+                cy = m->wy + (i % rows) * ch;
+                /* adjust height/width of last row/column's windows */
+                ah = ((i + 1) % rows == 0) ? m->wh - ch * rows : 0;
+                aw = (i >= rows * (cols - 1)) ? m->ww - cw * cols : 0;
+                resize(c, cx, cy, cw - 2 * c->bw + aw, ch - 2 * c->bw + ah, False);
+                i++;
+        }
+}
+
 /* appearance */
-static const char *fonts[] = {
-	"monospace:size=10"
-};
-static const char dmenufont[]       = "monospace:size=10";
-static const char normbordercolor[] = "#444444";
-static const char normbgcolor[]     = "#222222";
-static const char normfgcolor[]     = "#bbbbbb";
-static const char selbordercolor[]  = "#005577";
-static const char selbgcolor[]      = "#005577";
-static const char selfgcolor[]      = "#eeeeee";
+static const char *fonts[]          = { "Inconsolata:size=24" };
+static const char dmenufont[]       = "Inconsolata:size=24";
+
+static const char normbordercolor[] = "#002b36";
+static const char normbgcolor[]     = "#002b36";
+static const char normfgcolor[]     = "#657b83";
+static const char selbordercolor[]  = "#93a1a1";
+static const char selbgcolor[]      = "#93a1a1";
+static const char selfgcolor[]      = "#002b36";
+
 static const unsigned int borderpx  = 1;        /* border pixel of windows */
 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 */
 
 /* tagging */
-static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
+static const char *tags[] = { "a", "b", "c", "d" };
 
 static const Rule rules[] = {
 	/* xprop(1):
@@ -32,13 +59,14 @@
 /* layout(s) */
 static const float mfact     = 0.55; /* factor of master area size [0.05..0.95] */
 static const int nmaster     = 1;    /* number of clients in master area */
-static const int resizehints = 1;    /* 1 means respect size hints in tiled resizals */
+static const int resizehints = 0;    /* 1 means respect size hints in tiled resizals */
 
 static const Layout layouts[] = {
-	/* symbol     arrange function */
-	{ "[]=",      tile },    /* first entry is default */
-	{ "><>",      NULL },    /* no layout function means floating behavior */
-	{ "[M]",      monocle },
+	/* symbol         arrange function */
+	{ "[tile]",       tile },    /* first entry is default */
+	{ "[float]",      NULL },    /* no layout function means floating behavior */
+	{ "[full]",       monocle },
+	{ "[grid]",       grid},
 };
 
 /* key definitions */
@@ -74,6 +102,7 @@
 	{ MODKEY,                       XK_t,      setlayout,      {.v = &layouts[0]} },
 	{ MODKEY,                       XK_f,      setlayout,      {.v = &layouts[1]} },
 	{ MODKEY,                       XK_m,      setlayout,      {.v = &layouts[2]} },
+  { MODKEY,                       XK_g,      setlayout,      {.v = &layouts[3]} },
 	{ MODKEY,                       XK_space,  setlayout,      {0} },
 	{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },
 	{ MODKEY,                       XK_0,      view,           {.ui = ~0 } },

{'fraction_non_alphanumeric': 0.1771438633562247, 'fraction_numerical': 0.0491283676703645, 'mean_word_length': 2.032568072610785, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '711395', 'n_tokens_mistral': 2109, 'n_tokens_neox': 1879, 'n_words': 582}