----- Original Message -----
> From: Chris Down <[email protected]>
> To: mikshaw <[email protected]>; dev mail list <[email protected]>
> Cc:
> Sent: Saturday, August 31, 2013 2:57 PM
> Subject: Re: [dev] [dwm] mod3 key doesn't work in git source
>
> On 2013-08-31 11:08, mikshaw wrote:
>> I just decided to try following development of dwm through git, and wanted
> to
>> mention a strangeness i found with it. I've been using the windows key
> (mod3)
>> instead of Alt for a modkey, but it doesn't seem to work with the
> latest git
>> source of 6.1. I'm using the same config.h for 6.1 as i use with 6.0
>> (compared it with config.def.h to make sure there wasn't a
> context/syntax
>> change). dwm builds without trouble, but it's not grabbing mod3 key
> presses.
>> I also have mod4 (menu key) defined to launch dmenu, and it DOES grab mod4
>> keypresses...so that's kinda weird. I switch to 6.0 and Mod3 works,
> switch to
>> 6.1 and it doesn't. I dunno what difference there would be to make that
>> happen.
>
> I use Mod3 as my modifier with the latest HEAD, it works fine. Probably your
> config.h is mangled. You'll need to show your config.h if you expect help.
>
Thanks for the quick response. config.h is (hopefully) attached.
As i said, though, this is the same config i successfully used for 6.0, apart
from the "dmenumon[2]" part
/* See LICENSE file for copyright and license details. */
#include "push.c"
/* appearance */
//static const char font[] = "-artwiz-snap-normal-r-normal--10-100-75-75-p-90-iso8859-1";
static const char font[] = "-lfp-smooth-medium-r-normal--9-90-75-75-c-60-iso10646-1";
static const char normbordercolor[] = "#222222";
static const char normbgcolor[] = "#000000";
static const char normfgcolor[] = "#888888";
static const char selbordercolor[] = "#888888";
static const char selbgcolor[] = "#222222";
static const char selfgcolor[] = "#CCCCCC";
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
/* tagging */
static const char *tags[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "MPlayer", NULL, NULL, 0, True, -1 },
{ "Gifview", NULL, NULL, 0, True, -1 },
{ "feh", NULL, NULL, 0, True, -1 },
};
/* layout(s) */
static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
static const Layout layouts[] = {
/* symbol arrange function */
{ "[T]", tile }, /* first entry is default */
{ "[F]", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
};
/* key definitions */
#define MODKEY Mod3Mask
#define PMODKEY Mod4Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|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.sh", NULL };
static const char *termcmd[] = { "aterm", NULL };
static const char *marycmd[] = { "mary", NULL };
static const char *snapcmd[] = { "snapshot.sh", NULL };
static const char *volup[] = { "volume", "up", NULL };
static const char *voldn[] = { "volume", "down", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY|ShiftMask, XK_Tab, focusstack, {.i = -1 } },
{ MODKEY, XK_Tab, focusstack, {.i = +1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_KP_Subtract, setmfact, {.f = -0.05} },
{ MODKEY, XK_KP_Add, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_BackSpace, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_p, pushdown, {0} },
{ MODKEY|ShiftMask, XK_p, pushup, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_Home, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_Home, 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_0, 0)
TAGKEYS( XK_1, 1)
TAGKEYS( XK_2, 2)
TAGKEYS( XK_3, 3)
TAGKEYS( XK_4, 4)
TAGKEYS( XK_5, 5)
TAGKEYS( XK_6, 6)
TAGKEYS( XK_7, 7)
TAGKEYS( XK_8, 8)
TAGKEYS( XK_9, 9)
{ MODKEY|ControlMask|ShiftMask, XK_q, quit, {0} },
{ 0, XK_Menu, spawn, {.v = dmenucmd } },
{ PMODKEY, XK_Return, spawn, {.v = dmenucmd } },
{ PMODKEY, XK_m, spawn, {.v = marycmd } },
{ PMODKEY, XK_s, spawn, {.v = snapcmd } },
{ PMODKEY, XK_t, spawn, {.v = termcmd } },
{ MODKEY, XK_Up, spawn, {.v = volup } },
{ MODKEY, XK_Down, spawn, {.v = voldn } },
};
/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
};