commit ff0e4d43d449771d3cbf57cf764f632229ee3132
parent fc831cb2f1a6aaa330fb2be31954733a54b8a673
Author: prx <prx@ybad.name>
Date: Sat, 24 Apr 2021 22:35:03 +0200
make azerty usable with default keybindings
Diffstat:
2 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/patches/azerty/dwm-azerty-6.2.diff b/dwm.suckless.org/patches/azerty/dwm-azerty-6.2.diff
@@ -0,0 +1,43 @@
+diff -up dwm-6.2/config.def.h dwm-6.2-azerty/config.def.h
+--- dwm-6.2/config.def.h Sat Feb 2 13:55:28 2019
++++ dwm-6.2-azerty/config.def.h Sat Apr 24 22:28:13 2021
+@@ -78,21 +78,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, XK_agrave, view, {.ui = ~0 } },
++ { MODKEY|ShiftMask, XK_agrave, 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( XK_ampersand, 0)
++ TAGKEYS( XK_eacute, 1)
++ TAGKEYS( XK_quotedbl, 2)
++ TAGKEYS( XK_apostrophe, 3)
++ TAGKEYS( XK_parenleft, 4)
++ TAGKEYS( XK_minus, 5)
++ TAGKEYS( XK_egrave, 6)
++ TAGKEYS( XK_underscore, 7)
++ TAGKEYS( XK_ccedilla, 8)
+ { MODKEY|ShiftMask, XK_q, quit, {0} },
+ };
+
+Only in dwm-6.2-azerty: config.h
+Only in dwm-6.2-azerty: drw.o
+Only in dwm-6.2-azerty: dwm
+Only in dwm-6.2-azerty: dwm.o
+Only in dwm-6.2-azerty: util.o
diff --git a/dwm.suckless.org/patches/azerty/index.md b/dwm.suckless.org/patches/azerty/index.md
@@ -0,0 +1,17 @@
+azerty
+======
+
+Description
+-----------
+Replace default shortcuts to suit azerty keyboards with appropriate key.
+i.e `XK_1` should be `XK_ampersand`.
+
+the only notable difference if for the use of "period" : it becomes "semicolon".
+
+Download
+--------
+* [dwm-azerty-6.2.diff](dwm-azerty-6.2.diff)
+
+Author
+-------
+* prx - <prx@si3t.ch>