From 524ffdd1b935e47485b03d55cce92ad7eb29557a Mon Sep 17 00:00:00 2001
From: iliorik-ph <140731596+iliorik-ph@users.noreply.github.com>
Date: Mon, 23 Dec 2024 18:19:05 +0300
Subject: [PATCH 1/2] add dynamic macros support
---
keyboards/handwired/dactyl_manuform/5x8/keymaps/default/rules.mk | 1 +
1 file changed, 1 insertion(+)
create mode 100644 keyboards/handwired/dactyl_manuform/5x8/keymaps/default/rules.mk
diff --git a/keyboards/handwired/dactyl_manuform/5x8/keymaps/default/rules.mk b/keyboards/handwired/dactyl_manuform/5x8/keymaps/default/rules.mk
new file mode 100644
index 000000000000..9e6797ed3074
--- /dev/null
+++ b/keyboards/handwired/dactyl_manuform/5x8/keymaps/default/rules.mk
@@ -0,0 +1 @@
+DYNAMIC_MACRO_ENABLE = yes
From e177ea03f8471d004f74904ee98f1e329b9370f9 Mon Sep 17 00:00:00 2001
From: iliorik-ph <140731596+iliorik-ph@users.noreply.github.com>
Date: Mon, 23 Dec 2024 18:19:49 +0300
Subject: [PATCH 2/2] change key sets on first workday/add right2left layer
---
.../5x8/keymaps/default/keymap.c | 63 +++++++++----------
1 file changed, 31 insertions(+), 32 deletions(-)
diff --git a/keyboards/handwired/dactyl_manuform/5x8/keymaps/default/keymap.c b/keyboards/handwired/dactyl_manuform/5x8/keymaps/default/keymap.c
index 023fc878e436..a3ebfcdde4e0 100644
--- a/keyboards/handwired/dactyl_manuform/5x8/keymaps/default/keymap.c
+++ b/keyboards/handwired/dactyl_manuform/5x8/keymaps/default/keymap.c
@@ -25,15 +25,15 @@ along with this program. If not, see .
* ,-------------------------------------------------------, ,-------------------------------------------------------,
* | Esc | ` | 1 | 2 | 3 | 4 | 5 | 6 | | 7 | 8 | 9 | 0 | - | = | \ | BS |
* |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
- * | F3 | Tab | q | w | e | r | t | F6 | | F8 | y | u | i | o | p | [ | ] |
+ * |M_RSTP| Tab | q | w | e | r | t |QKBOOT| | F8 | y | u | i | o | p | [ | ] |
* |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
- * | F4 | Caps | a | s | d | f | g | F7 | | F9 | h | j | k | l | ; | " |ENTER |
+ * |M_REC1| Caps | a | s | d | f | g | F7 | | F9 | h | j | k | l | ; | " |ENTER |
* |------+------+------+------+------+------+------+------' '------+------+------+------+------+------+------+------|
- * | F5 | Shift| z | x | c | v | b | | n | m | , | . | ' |Shift | Ctrl |
- * |------+------+------+------+------+------+------' '------+------+------+------+------+------+------'
- * | Ctrl | Wint | Alt | PSCR | | Up | Down | Left | Right|
+ * |M_REC2| Shift| z | x | c | v | b | | n | m | , | . | / |Shift | Ctrl |
+ * '------+------+------+------+------+------+------' '------+------+------+------+------+------+------'
+ * | Ctrl | Wint | Alt | INS | | Up | Down | Left | Right|
* '------+------+------+------+------, ,------+------+------+------+------'
- * | BS |SPACE | | SPACE| BS |
+ * | TT(1)|SPACE | | SPACE| BS |
* '------+------+------' ,------+------+------'
* | ESC |ENTER | | HOME | END |
* '------+------' '------+------'
@@ -44,19 +44,19 @@ along with this program. If not, see .
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_QWERTY] = LAYOUT_5x8(
// left hand
- KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
- KC_F3, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, QK_BOOT,
- KC_F4, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_F7,
- KC_F5, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B,
- KC_LCTL, KC_LGUI, KC_LALT, KC_PSCR,
- KC_BSPC, KC_SPC,
+ KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
+ DM_RSTP, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, QK_BOOT,
+ DM_REC1, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_F7,
+ DM_REC2, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B,
+ KC_LCTL, KC_LGUI, KC_LALT, KC_INS,
+ TT(1), KC_SPC,
KC_ESC, KC_ENT,
KC_DEL, KC_F2,
// right hand
KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_BSPC,
KC_F8, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,
KC_F9, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
- KC_N, KC_M, KC_COMM, KC_DOT, KC_QUOT, KC_RSFT, KC_RCTL,
+ KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_RCTL,
KC_UP, KC_DOWN, KC_LEFT, KC_RGHT,
KC_BSPC, KC_SPC,
KC_HOME, KC_END,
@@ -64,15 +64,15 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
/* Base (right to left on hold button)
* ,-------------------------------------------------------, ,-------------------------------------------------------,
- * | BS | \ | = | - | 0 | 9 | 8 | 7 | | 7 | 8 | 9 | 0 | - | = | \ | BS |
+ * | BS | \ | = | - | 0 | 9 | 8 | 7 | | | | | | | | | |
* |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
- * | [ | ] | p | o | i | u | y | F6 | | F8 | y | u | i | o | p | [ | ] |
+ * | [ | ] | p | o | i | u | y |QKBOOT| | | | | | | | | |
* |------+------+------+------+------+------+------+------| |------+------+------+------+------+------+------+------|
- * |ENTER | Caps | ; | l | k | j | h | F7 | | F9 | h | j | k | l | ; | " |ENTER |
+ * |M_PLY1| " | ; | l | k | j | h |PRSCRN| | | | Left | Down | Up | Right| |ENTER |
* |------+------+------+------+------+------+------+------' '------+------+------+------+------+------+------+------|
- * | Ctrl | Shift| ' | . | , | m | n | | n | m | , | . | ' |Shift | Ctrl |
+ * |M_PLY2|MShift| / | . | , | m | n | | | | | | | | |
* |------+------+------+------+------+------+------' '------+------+------+------+------+------+------'
- * | Left |Right | Down | Up | | Up | Down | Left | Right|
+ * |MCtrl | MAlt | DEL | BS | | | | | |
* '------+------+------+------+------, ,------+------+------+------+------'
* | |SPACE | | SPACE| BS |
* '------+------+------' ,------+------+------'
@@ -81,29 +81,28 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | PGDN | PGUP | | PGUP | PGDN |
* '------+------' '------+------'
*/
-/*
-const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+
[_RIGHT2LEFT] = LAYOUT_5x8(
// left hand
- KC_ESC, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6,
- KC_F3, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_F6,
- KC_F4, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_F7,
- KC_F5, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B,
- KC_LCTL, KC_LGUI, KC_LALT, KC_PSCR,
- KC_BSPC, KC_SPC,
+ KC_BSPC, KC_BSLS, KC_EQL, KC_MINS, KC_0, KC_9, KC_8, KC_7,
+ KC_RBRC, KC_LBRC, KC_P, KC_O, KC_I, KC_U, KC_Y, QK_BOOT,
+ DM_PLY1, KC_QUOT, KC_SCLN, KC_L, KC_K, KC_J, KC_H, KC_PSCR,
+ DM_PLY2, OSM(MOD_LSFT), KC_SLSH, KC_DOT, KC_COMM, KC_M, KC_N,
+ OSM(MOD_LCTL), OSM(MOD_LALT), KC_DEL, KC_BSPC,
+ KC_NO, KC_SPC,
KC_ESC, KC_ENT,
KC_DEL, KC_F2,
// right hand
- KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_BSPC,
- KC_F8, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC,
- KC_F9, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT,
- KC_N, KC_M, KC_COMM, KC_DOT, KC_QUOT, KC_RSFT, KC_RCTL,
- KC_UP, KC_DOWN, KC_LEFT, KC_RGHT,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_BSPC,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_SCLN, KC_NO, KC_ENT,
+ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_NO, KC_NO, KC_NO, KC_NO,
KC_BSPC, KC_SPC,
KC_HOME, KC_END,
KC_PGUP, KC_PGDN
),
-*/
+
/* Base (qwerty)
* ,-------------------------------------------------------, ,-------------------------------------------------------,
* | Esc | ` | 1 | 2 | 3 | 4 | 5 | 6 | | 7 | 8 | 9 | 0 | - | = | \ | BS |