Add wip/dwm-git config.h, based on wm/dwm (without bstack patches) - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 91b5aeacc1cf45691827534e8a3f7313d9c03e1b
 (DIR) parent 14beed9b4ee2bfb06cf472f8c6b75bcf6ae45c8b
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sat,  1 Dec 2018 23:49:14 
       
       Add wip/dwm-git config.h, based on wm/dwm (without bstack patches)
       
       Diffstat:
        wip/dwm-git/patch-config.h |  160 +++++++++++++++++++++++++++++++++++++++++++++
        1 files changed, 160 insertions(+), 0 deletions(-)
       ---
       diff -r 14beed9b4ee2 -r 91b5aeacc1cf wip/dwm-git/patch-config.h
       --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
       +++ b/wip/dwm-git/patch-config.h        Sat Dec 01 23:49:14 2018 +0100
       @@ -0,0 +1,160 @@
       +--- /dev/null  2015-11-09 10:41:47.000000000 +0100
       ++++ config.h   2015-11-09 10:40:39.000000000 +0100
       +@@ -0,0 +1,157 @@
       ++/* See LICENSE file for copyright and license details. */
       ++
       ++/* appearance */
       ++static const char *fonts[]          = { "Droid Sans Mono:size=9" };
       ++static const char dmenufont[]       = "Droid Sans Mono:size=9";
       ++static const char normbordercolor[] = "#777777";
       ++static const char normbgcolor[]     = "#000000";
       ++static const char normfgcolor[]     = "#777777";
       ++static const char selbordercolor[]  = "#ffffff";
       ++static const char selbgcolor[]      = "#000000";
       ++static const char selfgcolor[]      = "#ffffff";
       ++static const char *colors[][3]      = {
       ++       /*               fg           bg           border   */
       ++       [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor },
       ++       [SchemeSel]  = {  selfgcolor,  selbgcolor,  selbordercolor },
       ++};
       ++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[] = { "F1", "F2", "F3", "F4", "F5" };
       ++
       ++static const Rule rules[] = {
       ++      /* xprop(1):
       ++       *      WM_CLASS(STRING) = instance, class
       ++       *      WM_NAME(STRING) = title
       ++       */
       ++      /* class      instance    title       tags mask     isfloating   monitor */
       ++      { "mpv",          NULL,       NULL,       0,            1,       -1 },
       ++      { "xterm-float",  NULL,       NULL,       0,            1,       -1 },
       ++      { "Firefox",      NULL,       NULL,       1 << 1,       0,       -1 },
       ++      { "Vimb",         NULL,       NULL,       1 << 1,       0,       -1 },
       ++      { "Surf",         NULL,       NULL,       1 << 1,       0,       -1 },
       ++      { "Luakit",       NULL,       NULL,       1 << 1,       0,       -1 },
       ++      { "tabbed",       NULL,       NULL,       1 << 1,       0,       -1 },
       ++      { "MuPDF",        NULL,       NULL,       1 << 2,       0,       -1 },
       ++      { "Zathura",      NULL,       NULL,       1 << 2,       0,       -1 },
       ++      { "Emacs",        NULL,       NULL,       1 << 3,       0,       -1 },
       ++      { "Gimp",         NULL,       NULL,       1 << 3,       0,       -1 },
       ++      { "SDL_App",      "SDL_App",  NULL,       0,            1,       -1 },
       ++};
       ++
       ++/* 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 Layout layouts[] = {
       ++      /* symbol     arrange function */
       ++      { "[M]",      monocle }, /* first entry is default */
       ++      { "[]=",      tile },
       ++      { "><>",      NULL },    /* no layout function means floating behavior */
       ++};
       ++
       ++static void
       ++moveresize(const Arg *arg) {
       ++      XEvent ev;
       ++      Monitor *m = selmon;
       ++
       ++      if(!(m->sel && arg && arg->v && m->sel->isfloating))
       ++              return;
       ++
       ++      resize(m->sel, m->sel->x + ((int *)arg->v)[0],
       ++          m->sel->y + ((int *)arg->v)[1],
       ++          m->sel->w + ((int *)arg->v)[2],
       ++          m->sel->h + ((int *)arg->v)[3],
       ++          True);
       ++
       ++      while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
       ++}
       ++
       ++/* key definitions */
       ++#define MODKEY Mod5Mask
       ++#define TAGKEYS(KEY,TAG) \
       ++      { 0,                     KEY,      view,           {.ui = 1 << TAG} }, \
       ++      { ControlMask,           KEY,      toggleview,     {.ui = 1 << TAG} }, \
       ++      { ShiftMask,             KEY,      tag,            {.ui = 1 << TAG} }, \
       ++      { ControlMask|ShiftMask, KEY,      toggletag,      {.ui = 1 << TAG} },
       ++
       ++/* helper for spawning shell commands in the pre dwm-5.0 fashion */
       ++#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
       ++
       ++/* commands */
       ++static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
       ++static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
       ++static const char *lockcmd[]  = { "slock", NULL };
       ++static const char *passmenucmd[]  = { "passmenu", "--type", NULL };
       ++static const char *xplumbcmd[]  = { "xplumb", NULL };
       ++static const char *termcmd[]  = { "xterm", NULL };
       ++static const char *termfloatcmd[]  = { "xterm-float", NULL };
       ++static const char *tmuxtermcmd[]  = { "mxterm", NULL };
       ++static const char *srmenucmd[]  = { "srmenu", NULL };
       ++static const char *webbrowsercmd[]  = { "webbrowser", NULL };
       ++
       ++static Key keys[] = {
       ++      /* modifier                     key           function        argument */
       ++      { 0,                            XK_Menu,      spawn,          {.v = dmenucmd } },
       ++      { MODKEY,                       XK_e,         spawn,          {.v = dmenucmd } },
       ++      { MODKEY|ShiftMask,             XK_Return,    spawn,          {.v = termcmd } },
       ++      { MODKEY|Mod1Mask,              XK_Return,    spawn,          {.v = termfloatcmd } },
       ++      { MODKEY,                       XK_a,         spawn,          {.v = tmuxtermcmd } },
       ++      { 0,                            XK_Multi_key, spawn,          {.v = webbrowsercmd} },
       ++      { MODKEY,                       XK_w,         spawn,          {.v = webbrowsercmd} },
       ++      { MODKEY,                       XK_Multi_key, spawn,          {.v = srmenucmd} },
       ++      { MODKEY,                       XK_p,         spawn,          {.v = xplumbcmd } },
       ++      { MODKEY|ShiftMask,             XK_p,         spawn,          {.v = passmenucmd } },
       ++      { MODKEY,                       XK_s,         spawn,          {.v = lockcmd } },
       ++      { MODKEY,                       XK_b,         togglebar,      {0} },
       ++      { MODKEY,                       XK_j,         focusstack,     {.i = +1 } },
       ++      { MODKEY,                       XK_k,         focusstack,     {.i = -1 } },
       ++      { MODKEY,                       XK_i,         incnmaster,     {.i = +1 } },
       ++      { 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_Tab,       view,           {0} },
       ++      { MODKEY|ShiftMask,             XK_c,         killclient,     {0} },
       ++      { MODKEY,                       XK_m,         setlayout,      {.v = &layouts[0]} },
       ++      { MODKEY,                       XK_t,         setlayout,      {.v = &layouts[1]} },
       ++      { MODKEY,                       XK_f,         setlayout,      {.v = &layouts[2]} },
       ++      { MODKEY,                       XK_o,         setlayout,      {.v = &layouts[3]} },
       ++      { MODKEY|ShiftMask,             XK_o,         setlayout,      {.v = &layouts[4]} },
       ++      { MODKEY,                       XK_space,     setlayout,      {0} },
       ++      { MODKEY|ShiftMask,             XK_space,     togglefloating, {0} },
       ++      { MODKEY,                       XK_0,         view,           {.ui = ~0 } },
       ++      { MODKEY|ShiftMask,             XK_0,         tag,            {.ui = ~0 } },
       ++      { MODKEY,                       XK_comma,     focusmon,       {.i = -1 } },
       ++      { MODKEY,                       XK_period,    focusmon,       {.i = +1 } },
       ++      { MODKEY|ShiftMask,             XK_comma,     tagmon,         {.i = -1 } },
       ++      { MODKEY|ShiftMask,             XK_period,    tagmon,         {.i = +1 } },
       ++      TAGKEYS(                        XK_F1,                        0)
       ++      TAGKEYS(                        XK_F2,                        1)
       ++      TAGKEYS(                        XK_F3,                        2)
       ++      TAGKEYS(                        XK_F4,                        3)
       ++      TAGKEYS(                        XK_F5,                        4)
       ++      { MODKEY|ShiftMask,             XK_q,         quit,           {0} },
       ++      { MODKEY,                       XK_Down,      moveresize,     {.v = (int []){0, 25, 0, 0}}},
       ++      { MODKEY,                       XK_Up,        moveresize,     {.v = (int []){0, -25, 0, 0}}},
       ++      { MODKEY,                       XK_Right,     moveresize,     {.v = (int []){25, 0, 0, 0}}},
       ++      { MODKEY,                       XK_Left,      moveresize,     {.v = (int []){-25, 0, 0, 0}}},
       ++      { MODKEY|ShiftMask,             XK_Down,      moveresize,     {.v = (int []){0, 0, 0, 25}}},
       ++      { MODKEY|ShiftMask,             XK_Up,        moveresize,     {.v = (int []){0, 0, 0, -25}}},
       ++      { MODKEY|ShiftMask,             XK_Right,     moveresize,     {.v = (int []){0, 0, 25, 0}}},
       ++      { MODKEY|ShiftMask,             XK_Left,      moveresize,     {.v = (int []){0, 0, -25, 0}}},
       ++};
       ++
       ++/* button definitions */
       ++/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
       ++static Button buttons[] = {
       ++      /* click                event mask      button          function        argument */
       ++      { ClkWinTitle,          0,              Button2,        zoom,           {0} },
       ++      { ClkClientWin,         MODKEY,         Button1,        movemouse,      {0} },
       ++      { ClkClientWin,         MODKEY,         Button2,        togglefloating, {0} },
       ++      { ClkClientWin,         MODKEY,         Button3,        resizemouse,    {0} },
       ++};