commit ff0e4d43d449771d3cbf57cf764f632229ee3132
Author: prx <[email protected]>
Date:   Sat Apr 24 22:35:03 2021 +0200

    make azerty usable with default keybindings

diff --git a/dwm.suckless.org/patches/azerty/dwm-azerty-6.2.diff 
b/dwm.suckless.org/patches/azerty/dwm-azerty-6.2.diff
new file mode 100644
index 00000000..6566ad38
--- /dev/null
+++ 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
new file mode 100644
index 00000000..551cfc43
--- /dev/null
+++ 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 - <[email protected]>


Reply via email to