Hi,
I made a config.h patch to adapt the dwm keys for a bepo keyboard.
The bepo disposition is an ergonomic keyboard disposition for French
language and similar. It's extend from the dvorak disposition for English
language. (bepo map :
http://download.tuxfamily.org/dvorak/wiki/images/Carte-bepo-simple.png)
As I use it and I use dwm, I wanted to adapt dwm for my needs
Firstly, I defined the tags keys according to the bepo disposition.
The keys "hjkl" are not close, so I remapped their functionalitys by the
"ctsr" keys.
I remapped the "tiles layout" function to the "รจ" key, which is at the
same position on the keyboard that the "t".
I also remapped the "focus previous screen" and "focus next screen" on the
same position key "q" and "g".
Finally, I also defined the "killclient" function on the "x" key.
I hope it would be helpful for someone else.
Let me know if something is wrong with the patch.
Best regards to suckless community,
--
Simon
() ascii ribbon campaign - against html e-mail
/\ http://www.asciiribbon.org/index-fr.html - against proprietary
attachments
--- dwm-6.0/config.def.h 2011-12-19 16:02:46.000000000 +0100
+++ dwm-6.0-modified/config.def.h 2012-03-20 23:47:40.000000000 +0100
@@ -54,35 +54,35 @@
{ MODKEY, XK_p, spawn, {.v =
dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v =
termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.i = -1 } },
+ { MODKEY, XK_t, focusstack, {.i = +1 } },
+ { MODKEY, XK_s, 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_c, setmfact, {.f = -0.05}
},
+ { MODKEY, XK_r, setmfact, {.f = +0.05}
},
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
- { MODKEY|ShiftMask, XK_c, killclient, {0} },
+ { MODKEY|ShiftMask, XK_x, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v =
&layouts[0]} },
- { MODKEY, XK_f, setlayout, {.v =
&layouts[1]} },
+ { MODKEY, 0xe8, setlayout, {.v =
&layouts[1]} },
{ 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, 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_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, 0x2a, view, {.ui = ~0 }
},
+ { MODKEY|ShiftMask, 0x2a, tag, {.ui = ~0 }
},
+ { MODKEY, XK_q, focusmon, {.i = -1 } },
+ { MODKEY, XK_g, focusmon, {.i = +1 } },
+ { MODKEY|ShiftMask, XK_q, tagmon, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_g, tagmon, {.i = +1 } },
+ TAGKEYS( 0x22, 0)
+ TAGKEYS( 0xab, 1)
+ TAGKEYS( 0xbb, 2)
+ TAGKEYS( 0x28, 3)
+ TAGKEYS( 0x29, 4)
+ TAGKEYS( 0x40, 5)
+ TAGKEYS( 0x2b, 6)
+ TAGKEYS( 0x2d, 7)
+ TAGKEYS( 0x2f, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
};