Hi everyone.
I just tried to make a path to use dwm and its whole functionnality with
an azerty keyboard. It is not always easy to find the keycode for & é "
' replacing 1 2 3 4 ...
Because it is the first .diff I build, it might be checked bu someone :)
.
And also, what do you think of a such patch on the wiki? Should I add it
?
diff -up dwm-5.8.2//config.def.h dwm-5.8.2-fr//config.def.h
--- dwm-5.8.2//config.def.h 2010-06-04 12:39:15.000000000 +0200
+++ dwm-5.8.2-fr//config.def.h 2011-04-21 08:49:36.000000000 +0200
@@ -65,21 +65,21 @@ static Key keys[] = {
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ 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, 0xe0, view, {.ui = ~0 } },
+ { MODKEY|ShiftMask, 0xe0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
- { MODKEY, XK_period, focusmon, {.i = +1 } },
+ { MODKEY, XK_semicolon, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
- { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- TAGKEYS( XK_1, 0)
- TAGKEYS( XK_2, 1)
- TAGKEYS( XK_3, 2)
- TAGKEYS( XK_4, 3)
- TAGKEYS( XK_5, 4)
- TAGKEYS( XK_6, 5)
- TAGKEYS( XK_7, 6)
- TAGKEYS( XK_8, 7)
- TAGKEYS( XK_9, 8)
+ { MODKEY|ShiftMask, XK_semicolon, tagmon, {.i = +1 } },
+ TAGKEYS( 0x26, 0)
+ TAGKEYS( 0xe9, 1)
+ TAGKEYS( 0x22, 2)
+ TAGKEYS( 0x27, 3)
+ TAGKEYS( 0x28, 4)
+ TAGKEYS( 0x2d, 5)
+ TAGKEYS( 0xe8, 6)
+ TAGKEYS( 0x5f, 7)
+ TAGKEYS( 0xe7, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};
@@ -99,4 +99,3 @@ static Button buttons[] = {
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} },
};
-
Seulement dans dwm-5.8.2/: config.def.h.rej