sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit fdafaf4a8c3f4d74b3329f6d0e9dc1396fd0c7f7
parent 261c324f1fd6b1f6f7b388a564a6d71d8c50e8d9
Author: Quentin Rameau <quinq@quinq.eu.org>
Date:   Mon, 27 Jan 2014 19:52:57 +0100

dwm keycode: added commentary to ease config

Diffstat:
Mdwm.suckless.org/patches/dwm-6.0-keycode.diff | 74++++++++++++++++++++++++++++++++++++++------------------------------------
1 file changed, 38 insertions(+), 36 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-6.0-keycode.diff b/dwm.suckless.org/patches/dwm-6.0-keycode.diff @@ -1,11 +1,12 @@ diff --git a/config.def.h b/config.def.h -index 875885b..93399d8 100644 +index 875885b..2ef8679 100644 --- a/config.def.h +++ b/config.def.h -@@ -56,39 +56,39 @@ static const char *termcmd[] = { "st", NULL }; +@@ -55,40 +55,40 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", font, "-nb + static const char *termcmd[] = { "st", NULL }; static Key keys[] = { - /* modifier key function argument */ +- /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_b, togglebar, {0} }, @@ -39,39 +40,40 @@ index 875885b..93399d8 100644 - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_q, quit, {0} }, -+ { MODKEY, 33, spawn, {.v = dmenucmd } }, -+ { MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, -+ { MODKEY, 56, togglebar, {0} }, -+ { MODKEY, 44, focusstack, {.i = +1 } }, -+ { MODKEY, 45, focusstack, {.i = -1 } }, -+ { MODKEY, 31, incnmaster, {.i = +1 } }, -+ { MODKEY, 40, incnmaster, {.i = -1 } }, -+ { MODKEY, 43, setmfact, {.f = -0.05} }, -+ { MODKEY, 46, setmfact, {.f = +0.05} }, -+ { MODKEY, 36, zoom, {0} }, -+ { MODKEY, 23, view, {0} }, -+ { MODKEY|ShiftMask, 54, killclient, {0} }, -+ { MODKEY, 28, setlayout, {.v = &layouts[0]} }, -+ { MODKEY, 41, setlayout, {.v = &layouts[1]} }, -+ { MODKEY, 58, setlayout, {.v = &layouts[2]} }, -+ { MODKEY, 65, setlayout, {0} }, -+ { MODKEY|ShiftMask, 65, togglefloating, {0} }, -+ { MODKEY, 19, view, {.ui = ~0 } }, -+ { MODKEY|ShiftMask, 19, tag, {.ui = ~0 } }, -+ { MODKEY, 59, focusmon, {.i = -1 } }, -+ { MODKEY, 60, focusmon, {.i = +1 } }, -+ { MODKEY|ShiftMask, 59, tagmon, {.i = -1 } }, -+ { MODKEY|ShiftMask, 60, tagmon, {.i = +1 } }, -+ TAGKEYS( 10, 0) -+ TAGKEYS( 11, 1) -+ TAGKEYS( 12, 2) -+ TAGKEYS( 13, 3) -+ TAGKEYS( 14, 4) -+ TAGKEYS( 15, 5) -+ TAGKEYS( 16, 6) -+ TAGKEYS( 17, 7) -+ TAGKEYS( 18, 8) -+ { MODKEY|ShiftMask, 1, quit, {0} }, ++ /* modifier key function argument */ ++ { MODKEY, 33, spawn, {.v = dmenucmd } }, // p ++ { MODKEY|ShiftMask, 36, spawn, {.v = termcmd } }, // Return ++ { MODKEY, 56, togglebar, {0} }, // b ++ { MODKEY, 44, focusstack, {.i = +1 } }, // j ++ { MODKEY, 45, focusstack, {.i = -1 } }, // k ++ { MODKEY, 31, incnmaster, {.i = +1 } }, // i ++ { MODKEY, 40, incnmaster, {.i = -1 } }, // d ++ { MODKEY, 43, setmfact, {.f = -0.05} }, // h ++ { MODKEY, 46, setmfact, {.f = +0.05} }, // l ++ { MODKEY, 36, zoom, {0} }, // Return ++ { MODKEY, 23, view, {0} }, // Tab ++ { MODKEY|ShiftMask, 54, killclient, {0} }, // c ++ { MODKEY, 28, setlayout, {.v = &layouts[0]} }, // t ++ { MODKEY, 41, setlayout, {.v = &layouts[1]} }, // f ++ { MODKEY, 58, setlayout, {.v = &layouts[2]} }, // m ++ { MODKEY, 65, setlayout, {0} }, // space ++ { MODKEY|ShiftMask, 65, togglefloating, {0} }, // space ++ { MODKEY, 19, view, {.ui = ~0 } }, // 0 ++ { MODKEY|ShiftMask, 19, tag, {.ui = ~0 } }, // 0 ++ { MODKEY, 59, focusmon, {.i = -1 } }, // comma ++ { MODKEY, 60, focusmon, {.i = +1 } }, // period ++ { MODKEY|ShiftMask, 59, tagmon, {.i = -1 } }, // comma ++ { MODKEY|ShiftMask, 60, tagmon, {.i = +1 } }, // period ++ TAGKEYS( 10, 0) // 1 ++ TAGKEYS( 11, 1) // 2 ++ TAGKEYS( 12, 2) // 3 ++ TAGKEYS( 13, 3) // 4 ++ TAGKEYS( 14, 4) // 5 ++ TAGKEYS( 15, 5) // 6 ++ TAGKEYS( 16, 6) // 7 ++ TAGKEYS( 17, 7) // 8 ++ TAGKEYS( 18, 8) // 9 ++ { MODKEY|ShiftMask, 24, quit, {0} }, // q }; /* button definitions */