diff --git a/layouts/community/ergodox/bepo/keymap.c b/layouts/community/ergodox/bepo/keymap.c index 30d207e59..f390f347a 100644 --- a/layouts/community/ergodox/bepo/keymap.c +++ b/layouts/community/ergodox/bepo/keymap.c @@ -14,11 +14,10 @@ #define FNAV 7 // function / navigation / mouse layer #define NUMK 8 // numeric keypad layer -// macros -#define KP_00 0 // keypad "double 0" - enum custom_keycodes { EPRM, + KP_00 = SAFE_RANGE, + KC_TNUMLOCK, }; bool base_layer_is_bepo = true; @@ -27,130 +26,130 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { /* Keymap 0: default layer * * ,--------------------------------------------------. ,--------------------------------------------------. - * | $ | " | < | > | ( | ) |Delete| |ScroLo| @ | + | - | / | * | = | + * | $ | " | < | > | ( | ) | BEPO | |ScroLo| @ | + | - | / | * | = | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | % | B |E_ACUT| P | O |E_GRAV|Backsp| |CapsLo| ^ | V | D | L | J | Z | - * |--------+------+------+------+------+------| ace | | |------+------+------+------+------+--------| + * | % | B |E_ACUT| P | O |E_GRAV|QWERTY| |CapsLo| ^ | V | D | L | J | Z | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | W | A | U | I | E | , |------| |------| C | T | S | R | N | M | - * |--------+------+------+------+------+------| Tab | | NumLo|------+------+------+------+------+--------| + * |--------+------+------+------+------+------|AZERTY| |TNumLo|------+------+------+------+------+--------| * | E_CIRC |A_GRAV| Y | X | . | K | | | | ' | Q | G | H | F | C_CEDIL| * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' - * |Escape|Insert|LSuper| LCtrl| LAlt| | BEPO |QWERTY| |AZERTY| BEPO | | AltGr| RCtrl|RSuper|PrntSc| Pause| + * |Escape|Insert|LSuper|T_FNav|L_NumK| | Tab |LCtrl | |RCtrl |Delete| |Hyper | Meh |RSuper|PrntSc| Pause| * `----------------------------------' ,------|------|------| |------+------+------. `----------------------------------' - * | | |L_NumK| |L_NumK| | | - * | Space|LShift|------| |------|RShift|Enter | - * | | |L_FNav| |L_FNav| | | + * | | | LAlt | |AltGr | | | + * | Space|Backsp|------| |------|RShift|Enter | + * | | ace |L_FNav| |L_FNav| | | * `--------------------' `--------------------' */ [BEPO] = LAYOUT_ergodox( // Left hand -BP_DOLLAR, BP_DQOT, BP_LGIL, BP_RGIL, BP_LPRN, BP_RPRN, KC_DEL, -BP_PERCENT, BP_B, BP_E_ACUTE, BP_P, BP_O, BP_E_GRAVE, KC_BSPC, +BP_DOLLAR, BP_DQOT, BP_LGIL, BP_RGIL, BP_LPRN, BP_RPRN, DF(BEPO), +BP_PERCENT, BP_B, BP_E_ACUTE, BP_P, BP_O, BP_E_GRAVE, DF(QW_B), BP_W, BP_A, BP_U, BP_I, BP_E, BP_COMMA, -BP_ECRC, BP_A_GRAVE, BP_Y, BP_X, BP_DOT, BP_K, KC_TAB, -KC_ESC, KC_INS, KC_LGUI, KC_LCTL, KC_LALT, - DF(BEPO), DF(QW_B), - MO(NUMK), - KC_SPC, KC_LSHIFT, MO(FNAV), +BP_ECRC, BP_A_GRAVE, BP_Y, BP_X, BP_DOT, BP_K, DF(AZ_B), +KC_ESC, KC_INS, KC_LGUI, TG(FNAV), MO(NUMK), + KC_TAB, KC_LCTL, + KC_LALT, + KC_SPC, KC_BSPC, MO(FNAV), // Right hand KC_SLCK, BP_AT, BP_PLUS, BP_MINUS, BP_SLASH, BP_ASTR, BP_EQUAL, KC_CAPSLOCK, BP_DCRC, BP_V, BP_D, BP_L, BP_J, BP_Z, BP_C, BP_T, BP_S, BP_R, BP_N, BP_M, - KC_NUMLOCK, BP_APOS, BP_Q, BP_G, BP_H, BP_F, BP_CCED, - KC_ALGR, KC_RCTL, KC_RGUI, KC_PSCREEN, KC_PAUSE, -DF(AZ_B), DF(BEPO), -MO(NUMK), + KC_TNUMLOCK, BP_APOS, BP_Q, BP_G, BP_H, BP_F, BP_CCED, + KC_HYPR, KC_MEH, KC_RGUI, KC_PSCREEN, KC_PAUSE, +KC_RCTL, KC_DEL, +KC_ALGR, MO(FNAV), KC_RSHIFT, KC_ENTER), /* Keymap 1: bepo to qwerty base compat layer * * ,--------------------------------------------------. ,--------------------------------------------------. - * | $ | " | < | > | ( | ) |Delete| |ScroLo| @ | + | - | / | * | = | + * | $ | " | < | > | ( | ) | BEPO | |ScroLo| @ | + | - | / | * | = | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | % | b | e | p | o | e |Backsp| |CapsLo| ^ | v | d | l | j | z | - * |--------+------+------+------+------+------| ace | | |------+------+------+------+------+--------| + * | % | b | e | p | o | e |QWERTY| |CapsLo| ^ | v | d | l | j | z | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | w | a | u | i | e | , |------| |------| c | t | s | r | n | m | - * |--------+------+------+------+------+------| Tab | | NumLo|------+------+------+------+------+--------| + * |--------+------+------+------+------+------|AZERTY| | NumLo|------+------+------+------+------+--------| * | e | a | y | x | . | k | | | | ' | q | g | h | f | c | * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' - * |Escape|Insert|LSuper| LCtrl| LAlt| | BEPO |QWERTY| |AZERTY| BEPO | | AltGr| RCtrl|RSuper|PrntSc| Pause| + * |Escape|Insert|LSuper|T_FNav|L_NumK| | Tab |LCtrl | |RCtrl |Delete| |Hyper | Meh |RSuper|PrntSc| Pause| * `----------------------------------' ,------|------|------| |------+------+------. `----------------------------------' - * | | |L_NumK| |L_NumK| | | - * | Space|LShift|------| |------|RShift|Enter | - * | | |L_FNav| |L_FNav| | | + * | | | LAlt | |AltGr | | | + * | Space|Backsp|------| |------|RShift|Enter | + * | | ace |L_FNav| |L_FNav| | | * `--------------------' `--------------------' */ [QW_B] = LAYOUT_ergodox( // Left hand -KC_DOLLAR, S(KC_QUOT), S(KC_COMM), S(KC_DOT), KC_LPRN, KC_RPRN, KC_DEL, -KC_PERCENT, KC_B, KC_E, KC_P, KC_O, KC_E, KC_BSPC, +KC_DOLLAR, S(KC_QUOT), S(KC_COMM), S(KC_DOT), KC_LPRN, KC_RPRN, KC_TRNS, +KC_PERCENT, KC_B, KC_E, KC_P, KC_O, KC_E, KC_TRNS, KC_W, KC_A, KC_U, KC_I, KC_E, KC_COMMA, -KC_E, KC_A, KC_Y, KC_X, KC_DOT, KC_K, KC_TAB, -KC_ESC, KC_INS, KC_LGUI, KC_LCTL, KC_LALT, +KC_E, KC_A, KC_Y, KC_X, KC_DOT, KC_K, KC_TRNS, +KC_ESC, KC_INS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_SPC, MO(QW_S), KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, // Right hand - KC_SLCK, KC_AT, KC_PLUS, KC_MINUS, KC_SLASH, KC_ASTR, KC_EQUAL, - KC_CAPSLOCK, KC_CIRC, KC_V, KC_D, KC_L, KC_J, KC_Z, + KC_TRNS, KC_AT, KC_PLUS, KC_MINUS, KC_SLASH, KC_ASTR, KC_EQUAL, + KC_TRNS, KC_CIRC, KC_V, KC_D, KC_L, KC_J, KC_Z, KC_C, KC_T, KC_S, KC_R, KC_N, KC_M, - KC_NUMLOCK, KC_QUOT, KC_Q, KC_G, KC_H, KC_F, KC_C, - MO(QW_A), KC_RCTL, KC_RGUI, KC_PSCREEN, KC_PAUSE, + KC_TRNS, KC_QUOT, KC_Q, KC_G, KC_H, KC_F, KC_C, + KC_TRNS, KC_TRNS, KC_RGUI, KC_PSCREEN, KC_PAUSE, KC_TRNS, KC_TRNS, -KC_TRNS, +MO(QW_A), KC_TRNS, MO(QW_S), KC_ENTER), /* Keymap 2: bepo with altgr key to qwerty compat layer * * ,--------------------------------------------------. ,--------------------------------------------------. - * | $ | " | < | > | [ | ] |Delete| |ScroLo| @ | + | - | / | * | = | + * | $ | " | < | > | [ | ] | BEPO | |ScroLo| @ | + | - | / | * | = | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | % | | | e | & | o | e |Backsp| |CapsLo| ^ | v | d | l | j | z | - * |--------+------+------+------+------+------| ace | | |------+------+------+------+------+--------| + * | % | | | e | & | o | e |QWERTY| |CapsLo| ^ | v | d | l | j | z | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | w | a | u | i | € | , |------| |------| c | t | s | r | n | m | - * |--------+------+------+------+------+------| Tab | | NumLo|------+------+------+------+------+--------| + * |--------+------+------+------+------+------|AZERTY| | NumLo|------+------+------+------+------+--------| * | e | \ | { | } | . | ~ | | | | ' | q | g | h | f | c | * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' - * |Escape|Insert|LSuper| LCtrl| LAlt| | BEPO |QWERTY| |AZERTY| BEPO | | AltGr| RCtrl|RSuper|PrntSc| Pause| + * |Escape|Insert|LSuper|T_FNav|L_NumK| | Tab |LCtrl | |RCtrl |Delete| |Hyper | Meh |RSuper|PrntSc| Pause| * `----------------------------------' ,------|------|------| |------+------+------. `----------------------------------' - * | | |L_NumK| |L_NumK| | | - * | _ |LShift|------| |------|RShift|Enter | - * | | |L_FNav| |L_FNav| | | + * | | | LAlt | |AltGr | | | + * | _ |Backsp|------| |------|RShift|Enter | + * | | ace |L_FNav| |L_FNav| | | * `--------------------' `--------------------' */ [QW_A] = LAYOUT_ergodox( // Left hand -KC_DOLLAR, S(KC_QUOT), S(KC_COMM), S(KC_DOT), KC_LBRC, KC_RBRC, KC_DEL, -KC_PERCENT, KC_PIPE, KC_E, KC_AMPR, KC_O, KC_E, KC_BSPC, +KC_DOLLAR, S(KC_QUOT), S(KC_COMM), S(KC_DOT), KC_LBRC, KC_RBRC, KC_TRNS, +KC_PERCENT, KC_PIPE, KC_E, KC_AMPR, KC_O, KC_E, KC_TRNS, KC_W, KC_A, KC_U, KC_I, RALT(KC_5), KC_COMMA, -KC_E, KC_BSLASH, KC_LCBR, KC_RCBR, KC_DOT, KC_TILDE, KC_TAB, -KC_ESC, KC_INS, KC_LGUI, KC_LCTL, KC_LALT, +KC_E, KC_BSLASH, KC_LCBR, KC_RCBR, KC_DOT, KC_TILDE, KC_TRNS, +KC_ESC, KC_INS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_UNDS, MO(QW_S), KC_TRNS, + KC_UNDS, KC_TRNS, KC_TRNS, // Right hand - KC_SLCK, KC_AT, KC_PLUS, KC_MINUS, KC_SLASH, KC_ASTR, KC_EQUAL, - KC_CAPSLOCK, KC_CIRC, KC_V, KC_D, KC_L, KC_J, KC_Z, + KC_TRNS, KC_AT, KC_PLUS, KC_MINUS, KC_SLASH, KC_ASTR, KC_EQUAL, + KC_TRNS, KC_CIRC, KC_V, KC_D, KC_L, KC_J, KC_Z, KC_C, KC_T, KC_S, KC_R, KC_N, KC_M, - KC_NUMLOCK, KC_QUOT, KC_Q, KC_G, KC_H, KC_F, KC_C, - KC_TRNS, KC_RCTL, KC_RGUI, KC_PSCREEN, KC_PAUSE, + KC_TRNS, KC_QUOT, KC_Q, KC_G, KC_H, KC_F, KC_C, + KC_TRNS, KC_TRNS, KC_RGUI, KC_PSCREEN, KC_PAUSE, KC_TRNS, KC_TRNS, KC_TRNS, -KC_TRNS, MO(QW_S), KC_ENTER), +KC_TRNS, KC_TRNS, KC_ENTER), /* Keymap 3: bepo with shift key to qwerty compat layer * * ,--------------------------------------------------. ,--------------------------------------------------. - * | # | 1 | 2 | 3 | 4 | 5 |Delete| |ScroLo| 6 | 7 | 8 | 9 | 0 | = | + * | # | 1 | 2 | 3 | 4 | 5 | BEPO | |ScroLo| 6 | 7 | 8 | 9 | 0 | = | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | ` | B | E | P | O | E |Backsp| |CapsLo| ! | V | D | L | J | Z | - * |--------+------+------+------+------+------| ace | | |------+------+------+------+------+--------| + * | ` | B | E | P | O | E |QWERTY| |CapsLo| ! | V | D | L | J | Z | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | W | A | U | I | E | ; |------| |------| C | T | S | R | N | M | - * |--------+------+------+------+------+------| Tab | | NumLo|------+------+------+------+------+--------| + * |--------+------+------+------+------+------|AZERTY| | NumLo|------+------+------+------+------+--------| * | E | A | Y | X | : | K | | | | ? | Q | G | H | F | C | * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' - * |Escape|Insert|LSuper| LCtrl| LAlt| | BEPO |QWERTY| |AZERTY| BEPO | | AltGr| RCtrl|RSuper|PrntSc| Pause| + * |Escape|Insert|LSuper|T_FNav|L_NumK| | Tab |LCtrl | |RCtrl |Delete| |Hyper | Meh |RSuper|PrntSc| Pause| * `----------------------------------' ,------|------|------| |------+------+------. `----------------------------------' - * | | |L_NumK| |L_NumK| | | - * | Space|LShift|------| |------|RShift|Enter | - * | | |L_FNav| |L_FNav| | | + * | | | LAlt | |AltGr | | | + * | Space|Backsp|------| |------|RShift|Enter | + * | | ace |L_FNav| |L_FNav| | | * `--------------------' `--------------------' */ [QW_S] = LAYOUT_ergodox( @@ -158,110 +157,110 @@ KC_TRNS, MO(QW_S), KC_ENTER), KC_HASH, KC_1, KC_2, KC_3, KC_4, KC_5, KC_TRNS, KC_GRV, S(KC_B), S(KC_E), S(KC_P), S(KC_O), S(KC_E), KC_TRNS, S(KC_W), S(KC_A), S(KC_U), S(KC_I), S(KC_E), KC_SCOLON, -S(KC_E), S(KC_A), S(KC_Y), S(KC_X), KC_COLON, S(KC_K), S(KC_TAB), -S(KC_ESC), S(KC_INS), S(KC_LGUI), S(KC_LCTL), S(KC_LALT), - KC_TRNS, KC_TRNS, - KC_TRNS, +S(KC_E), S(KC_A), S(KC_Y), S(KC_X), KC_COLON, S(KC_K), KC_TRNS, +S(KC_ESC), S(KC_INS), S(KC_LGUI), KC_TRNS, KC_TRNS, + S(KC_TAB), S(KC_LCTL), + S(KC_LALT), KC_TRNS, KC_TRNS, KC_TRNS, // Right hand KC_TRNS, KC_6, KC_7, KC_8, KC_9, KC_0, KC_TRNS, KC_TRNS, KC_EXLM, S(KC_V), S(KC_D), S(KC_L), S(KC_J), S(KC_Z), S(KC_C), S(KC_T), S(KC_S), S(KC_R), S(KC_N), S(KC_M), KC_TRNS, S(KC_SLASH), S(KC_Q), S(KC_G), S(KC_H), S(KC_F), S(KC_C), - S(KC_RALT), S(KC_RCTL), S(KC_RGUI), KC_TRNS, KC_TRNS, -KC_TRNS, KC_TRNS, -KC_TRNS, + KC_TRNS, KC_TRNS, S(KC_RGUI), KC_TRNS, KC_TRNS, +S(KC_RCTL), KC_TRNS, +S(KC_RALT), KC_TRNS, KC_TRNS, KC_TRNS), /* Keymap 4: bepo to azerty base compat layer * * ,--------------------------------------------------. ,--------------------------------------------------. - * | $ | " | < | > | ( | ) |Delete| |ScroLo| @ | + | - | / | * | = | + * | $ | " | < | > | ( | ) | BEPO | |ScroLo| @ | + | - | / | * | = | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | % | b |e_acut| p | o |e_grav|Backsp| |CapsLo| ^ | v | d | l | j | z | - * |--------+------+------+------+------+------| ace | | |------+------+------+------+------+--------| + * | % | b |e_acut| p | o |e_grav|QWERTY| |CapsLo| ^ | v | d | l | j | z | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | w | a | u | i | e | , |------| |------| c | t | s | r | n | m | - * |--------+------+------+------+------+------| Tab | | NumLo|------+------+------+------+------+--------| + * |--------+------+------+------+------+------|AZERTY| | NumLo|------+------+------+------+------+--------| * | e |a_grav| y | x | . | k | | | | ' | q | g | h | f | c_cedil| * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' - * |Escape|Insert|LSuper| LCtrl| LAlt| | BEPO |QWERTY| |AZERTY| BEPO | | AltGr| RCtrl|RSuper|PrntSc| Pause| + * |Escape|Insert|LSuper|T_FNav|L_NumK| | Tab |LCtrl | |RCtrl |Delete| |Hyper | Meh |RSuper|PrntSc| Pause| * `----------------------------------' ,------|------|------| |------+------+------. `----------------------------------' - * | | |L_NumK| |L_NumK| | | - * | Space|LShift|------| |------|RShift|Enter | - * | | |L_FNav| |L_FNav| | | + * | | | LAlt | |AltGr | | | + * | Space|Backsp|------| |------|RShift|Enter | + * | | ace |L_FNav| |L_FNav| | | * `--------------------' `--------------------' */ [AZ_B] = LAYOUT_ergodox( // Left hand -FR_DLR, FR_QUOT, FR_LESS, FR_GRTR, FR_LPRN, FR_RPRN, KC_DEL, -FR_PERC, KC_B, FR_EACU, KC_P, KC_O, FR_EGRV, KC_BSPC, +FR_DLR, FR_QUOT, FR_LESS, FR_GRTR, FR_LPRN, FR_RPRN, KC_TRNS, +FR_PERC, KC_B, FR_EACU, KC_P, KC_O, FR_EGRV, KC_TRNS, FR_W, FR_A, KC_U, KC_I, KC_E, FR_COMM, -KC_E, FR_AGRV, KC_Y, KC_X, FR_DOT, KC_K, KC_TAB, -KC_ESC, KC_INS, KC_LGUI, KC_LCTL, KC_LALT, +KC_E, FR_AGRV, KC_Y, KC_X, FR_DOT, KC_K, KC_TRNS, +KC_ESC, KC_INS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - KC_SPC, MO(AZ_S), KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, // Right hand - KC_SLCK, FR_AT, FR_PLUS, FR_MINS, FR_SLSH, FR_ASTR, FR_EQL, - KC_CAPSLOCK, KC_LBRC, KC_V, KC_D, KC_L, KC_J, FR_Z, + KC_TRNS, FR_AT, FR_PLUS, FR_MINS, FR_SLSH, FR_ASTR, FR_EQL, + KC_TRNS, KC_LBRC, KC_V, KC_D, KC_L, KC_J, FR_Z, KC_C, KC_T, KC_S, KC_R, KC_N, FR_M, - KC_NUMLOCK, FR_APOS, FR_Q, KC_G, KC_H, KC_F, FR_CCED, - MO(AZ_A), KC_RCTL, KC_RGUI, KC_PSCREEN, KC_PAUSE, + KC_TRNS, FR_APOS, FR_Q, KC_G, KC_H, KC_F, FR_CCED, + KC_TRNS, KC_TRNS, KC_RGUI, KC_PSCREEN, KC_PAUSE, KC_TRNS, KC_TRNS, -KC_TRNS, +MO(AZ_A), KC_TRNS, MO(AZ_S), KC_ENTER), /* Keymap 5: bepo with altgr key to azerty compat layer * * ,--------------------------------------------------. ,--------------------------------------------------. - * | $ | " | < | > | [ | ] |Delete| |ScroLo| @ | + | - | / | * | = | + * | $ | " | < | > | [ | ] | BEPO | |ScroLo| @ | + | - | / | * | = | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | % | | | e | & | o | e |Backsp| |CapsLo| ^ | v | d | l | j | z | - * |--------+------+------+------+------+------| ace | | |------+------+------+------+------+--------| + * | % | | | e | & | o | e |QWERTY| |CapsLo| ^ | v | d | l | j | z | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | w | a |u_grav| trem | € | , |------| |------| c | t | s | r | n | m | - * |--------+------+------+------+------+------| Tab | | NumLo|------+------+------+------+------+--------| + * |--------+------+------+------+------+------|AZERTY| | NumLo|------+------+------+------+------+--------| * | / | \ | { | } | . | ~ | | | | ' | q | g | h | f | c | * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' - * |Escape|Insert|LSuper| LCtrl| LAlt| | BEPO |QWERTY| |AZERTY| BEPO | | AltGr| RCtrl|RSuper|PrntSc| Pause| + * |Escape|Insert|LSuper|T_FNav|L_NumK| | Tab |LCtrl | |RCtrl |Delete| |Hyper | Meh |RSuper|PrntSc| Pause| * `----------------------------------' ,------|------|------| |------+------+------. `----------------------------------' - * | | |L_NumK| |L_NumK| | | - * | _ |LShift|------| |------|RShift|Enter | - * | | |L_FNav| |L_FNav| | | + * | | | LAlt | |AltGr | | | + * | _ |Backsp|------| |------|RShift|Enter | + * | | ace |L_FNav| |L_FNav| | | * `--------------------' `--------------------' */ [AZ_A] = LAYOUT_ergodox( // Left hand -FR_DLR, FR_QUOT, FR_LESS, FR_GRTR, FR_LBRC, FR_RBRC, KC_DEL, -FR_PERC, FR_PIPE, FR_EACU, FR_AMP, KC_O, FR_EGRV, KC_BSPC, +FR_DLR, FR_QUOT, FR_LESS, FR_GRTR, FR_LBRC, FR_RBRC, KC_TRNS, +FR_PERC, FR_PIPE, FR_EACU, FR_AMP, KC_O, FR_EGRV, KC_TRNS, FR_W, FR_A, FR_UGRV, S(KC_LBRC), FR_EURO, FR_COMM, -FR_SLSH, FR_BSLS, FR_LCBR, FR_RCBR, FR_DOT, FR_TILD, KC_TAB, -KC_ESC, KC_INS, KC_LGUI, KC_LCTL, KC_LALT, +FR_SLSH, FR_BSLS, FR_LCBR, FR_RCBR, FR_DOT, FR_TILD, KC_TRNS, +KC_ESC, KC_INS, KC_LGUI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, - FR_UNDS, MO(AZ_S), KC_TRNS, + FR_UNDS, KC_TRNS, KC_TRNS, // Right hand - KC_SLCK, FR_AT, FR_PLUS, FR_MINS, FR_SLSH, FR_ASTR, FR_EQL, - KC_CAPSLOCK, KC_LBRC, KC_V, KC_D, KC_L, KC_J, FR_Z, + KC_TRNS, FR_AT, FR_PLUS, FR_MINS, FR_SLSH, FR_ASTR, FR_EQL, + KC_TRNS, KC_LBRC, KC_V, KC_D, KC_L, KC_J, FR_Z, KC_C, KC_T, KC_S, KC_R, KC_N, FR_M, - KC_NUMLOCK, FR_APOS, FR_Q, KC_G, KC_H, KC_F, FR_CCED, - KC_TRNS, KC_RCTL, KC_RGUI, KC_PSCREEN, KC_PAUSE, + KC_TRNS, FR_APOS, FR_Q, KC_G, KC_H, KC_F, FR_CCED, + KC_TRNS, KC_TRNS, KC_RGUI, KC_PSCREEN, KC_PAUSE, KC_TRNS, KC_TRNS, KC_TRNS, -KC_TRNS, MO(AZ_S), KC_ENTER), +KC_TRNS, KC_TRNS, KC_ENTER), /* Keymap 6: bepo with shift key to azerty compat layer * * ,--------------------------------------------------. ,--------------------------------------------------. - * | # | 1 | 2 | 3 | 4 | 5 |Delete| |ScroLo| 6 | 7 | 8 | 9 | 0 | ° | + * | # | 1 | 2 | 3 | 4 | 5 | BEPO | |ScroLo| 6 | 7 | 8 | 9 | 0 | ° | * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------| - * | ` | B | E | P | O | E |Backsp| |CapsLo| ! | V | D | L | J | Z | - * |--------+------+------+------+------+------| ace | | |------+------+------+------+------+--------| + * | ` | B | E | P | O | E |QWERTY| |CapsLo| ! | V | D | L | J | Z | + * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | W | A | U | I | E | ; |------| |------| C | T | S | R | N | M | - * |--------+------+------+------+------+------| Tab | | NumLo|------+------+------+------+------+--------| + * |--------+------+------+------+------+------|AZERTY| | NumLo|------+------+------+------+------+--------| * | E | A | Y | X | : | K | | | | ? | Q | G | H | F | C | * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' - * |Escape|Insert|LSuper| LCtrl| LAlt| | BEPO |QWERTY| |AZERTY| BEPO | | AltGr| RCtrl|RSuper|PrntSc| Pause| + * |Escape|Insert|LSuper|T_FNav|L_NumK| | Tab |LCtrl | |RCtrl |Delete| |Hyper | Meh |RSuper|PrntSc| Pause| * `----------------------------------' ,------|------|------| |------+------+------. `----------------------------------' - * | | |L_NumK| |L_NumK| | | - * | Space|LShift|------| |------|RShift|Enter | - * | | |L_FNav| |L_FNav| | | + * | | | LAlt | |AltGr | | | + * | Space|Backsp|------| |------|RShift|Enter | + * | | ace |L_FNav| |L_FNav| | | * `--------------------' `--------------------' */ [AZ_S] = LAYOUT_ergodox( @@ -269,19 +268,19 @@ KC_TRNS, MO(AZ_S), KC_ENTER), FR_HASH, FR_1, FR_2, FR_3, FR_4, FR_5, KC_TRNS, FR_GRV, S(KC_B), S(KC_E), S(KC_P), S(KC_O), S(KC_E), KC_TRNS, S(FR_W), S(FR_A), S(KC_U), S(KC_I), S(KC_E), FR_SCLN, -S(KC_E), S(FR_A), S(KC_Y), S(KC_X), FR_COLN, S(KC_K), S(KC_TAB), -S(KC_ESC), S(KC_INS), S(KC_LGUI), S(KC_LCTL), S(KC_LALT), - KC_TRNS, KC_TRNS, - KC_TRNS, +S(KC_E), S(FR_A), S(KC_Y), S(KC_X), FR_COLN, S(KC_K), KC_TRNS, +S(KC_ESC), S(KC_INS), S(KC_LGUI), KC_TRNS, KC_TRNS, + S(KC_TAB), S(KC_LCTL), + S(KC_LALT), KC_TRNS, KC_TRNS, KC_TRNS, // Right hand KC_TRNS, FR_6, FR_7, FR_8, FR_9, FR_0, FR_OVRR, KC_TRNS, FR_EXLM, S(KC_V), S(KC_D), S(KC_L), S(KC_J), S(FR_Z), S(KC_C), S(KC_T), S(KC_S), S(KC_R), S(KC_N), S(FR_M), KC_TRNS, FR_QUES, S(FR_Q), S(KC_G), S(KC_H), S(KC_F), S(KC_C), - S(KC_RALT), S(KC_RCTL), S(KC_RGUI), KC_TRNS, KC_TRNS, -KC_TRNS, KC_TRNS, -KC_TRNS, + KC_TRNS, KC_TRNS, S(KC_RGUI), KC_TRNS, KC_TRNS, +S(KC_RCTL), KC_TRNS, +S(KC_RALT), KC_TRNS, KC_TRNS, KC_TRNS), /* Keymap 7: function / navigation / mouse layer * @@ -308,16 +307,16 @@ KC_NO, KC_MS_BTN5, KC_MS_BTN1, KC_MS_UP, KC_MS_BTN2, KC_MS_WH_UP, KC_VOLU, KC_NO, KC_MS_BTN4, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT, KC_MS_WH_DOWN, KC_NO, KC_UNDO, KC_CUT, KC_COPY, KC_PASTE, KC_NO, KC_VOLD, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, - KC_TRNS, KC_TRNS, + KC_NO, KC_TRNS, KC_TRNS, - KC_NO, KC_TRNS, KC_TRNS, + KC_NO, KC_NO, KC_TRNS, // Right hand KC_NO, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_NO, KC_NO, KC_PGUP, KC_HOME, KC_UP, KC_END, KC_F11, KC_NO, KC_PGDOWN, KC_LEFT, KC_DOWN, KC_RIGHT, KC_F12, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, RESET, -KC_TRNS, KC_TRNS, +KC_TRNS, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO), /* Keymap 8: numeric keypad layer, sends keypad codes @@ -328,7 +327,7 @@ KC_TRNS, KC_TRNS, KC_NO), * | | | | | | | | | | | 7 | 8 | 9 | + | | * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| * | | | | | | |------| |------| | 4 | 5 | 6 | + | | - * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------| + * |--------+------+------+------+------+------| | |TNumLo|------+------+------+------+------+--------| * | | | | | | | | | | | 1 | 2 | 3 | Enter| | * `--------+------+------+------+------+-------------,-------------. ,-------------`-------------+------+------+------+------+--------' * | | | | | | | | | | | | | 0 | 00 | . | Enter| | @@ -352,28 +351,13 @@ KC_NO, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NUMLOCK, KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_MINUS, KC_NO, KC_NO, KC_NO, KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_PLUS, KC_NO, KC_NO, KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_PLUS, KC_NO, - KC_NO, KC_NO, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, KC_NO, - KC_KP_0, M(KP_00), KC_KP_COMMA, KC_KP_ENTER, KC_NO, + KC_TRNS, KC_NO, KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_ENTER, KC_NO, + KC_KP_0, KP_00, KC_KP_COMMA, KC_KP_ENTER, KC_NO, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_NO) }; -const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) -{ - switch(id) { - // keypad "double 0" - case KP_00: - if (record->event.pressed) { - return MACRO( T(KP_0), D(KP_0), END ); - } else { - return MACRO( U(KP_0), END ); - } - break; - } - return MACRO_NONE; -}; - bool process_record_user(uint16_t keycode, keyrecord_t *record) { switch (keycode) { case EPRM: @@ -381,6 +365,26 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { eeconfig_init(); } return false; + // keypad "double 0" + case KP_00: + if (record->event.pressed) { + SEND_STRING(SS_TAP(X_KP_0) SS_DOWN(X_KP_0)); + } + else { + SEND_STRING(SS_UP(X_KP_0)); + } + break; + case KC_TNUMLOCK: + if (record->event.pressed) { + SEND_STRING(SS_TAP(X_NUMLOCK)); + if(IS_LAYER_ON(NUMK)) { + layer_off(NUMK); + } + else { + layer_on(NUMK); + } + } + break; } return true; } @@ -433,7 +437,7 @@ void led_set_user(uint8_t usb_led) { if (! base_layer_is_bepo) { ergodox_right_led_1_on(); } - else if (usb_led & (1<