[Keymap] jotix ortho_4x12_layout tweakings (#5904)
* jotix ortho_4x12_layout tweakings * jotix ortho_4x12_layout tweakings
This commit is contained in:
parent
e0ecc53f4e
commit
11c7cd47ae
1 changed files with 46 additions and 25 deletions
|
@ -7,12 +7,16 @@ extern keymap_config_t keymap_config;
|
||||||
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
||||||
// entirely and just use numbers.
|
// entirely and just use numbers.
|
||||||
|
|
||||||
#define _QWERTY 0
|
enum layers {
|
||||||
#define _FN 1
|
_QWERTY,
|
||||||
#define _UNICODE 2
|
_LOWER,
|
||||||
#define _ADJUST 3
|
_RAISE,
|
||||||
|
_UNICODE,
|
||||||
|
_ADJUST,
|
||||||
|
};
|
||||||
|
|
||||||
#define FN MO(_FN)
|
#define LOWER MO(_LOWER)
|
||||||
|
#define RAISE MO(_RAISE)
|
||||||
#define UNICODE MO(_UNICODE)
|
#define UNICODE MO(_UNICODE)
|
||||||
|
|
||||||
enum unicode_names {
|
enum unicode_names {
|
||||||
|
@ -112,8 +116,7 @@ const uint32_t PROGMEM unicode_map[] = {
|
||||||
#define U_UNIC XP(UACUTE, UACUTE_M)
|
#define U_UNIC XP(UACUTE, UACUTE_M)
|
||||||
#define Y_UNIC XP(UDIER, UDIER_M )
|
#define Y_UNIC XP(UDIER, UDIER_M )
|
||||||
#define N_UNIC XP(NTILDE, NTILDE_M)
|
#define N_UNIC XP(NTILDE, NTILDE_M)
|
||||||
|
#define ORD_UN XP(ORDF, ORDM)
|
||||||
#define TAB_UNI LT(_UNICODE, KC_TAB)
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
@ -121,36 +124,54 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | esc | Q | W | E | R | T | Y | U | I | O | P | bksp |
|
* | esc | Q | W | E | R | T | Y | U | I | O | P | bksp |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* |tab/unic| A | S | D | F | G | H | J | K | L | ; | ' |
|
* | tab | A | S | D | F | G | H | J | K | L | ; | del |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | lshift | Z | X | C | V | B | N | M | , | . | / | enter |
|
* | lshift | Z | X | C | V | B | N | M | , | . | up | enter |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | lctrl | lalt | caps | del | lgui | space | space | fn | left | down | up | right |
|
* | lctrl | lalt | lower | unic | lgui | space | space | raise | / | left | down | right |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
*/
|
*/
|
||||||
[_QWERTY] = LAYOUT_ortho_4x12 (
|
[_QWERTY] = LAYOUT_ortho_4x12 (
|
||||||
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
|
||||||
TAB_UNI, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
|
KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_DEL,
|
||||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_ENT,
|
||||||
KC_LCTL, KC_LALT, KC_CAPS, KC_DEL, KC_LGUI, KC_SPC, KC_SPC, FN, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT
|
KC_LCTL, KC_LALT, LOWER, UNICODE, KC_LGUI, KC_SPC, KC_SPC, RAISE, KC_SLSH, KC_LEFT, KC_DOWN, KC_RGHT
|
||||||
),
|
),
|
||||||
|
|
||||||
/* fn
|
/* Lower
|
||||||
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
|
* | | F1 | F2 | F3 | F4 | | | 7 | 8 | 9 | - | |
|
||||||
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
|
* | | F5 | F6 | F7 | F8 | | | 4 | 5 | 6 | + | |
|
||||||
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
|
* | | F9 | F10 | F11 | F12 | | nlck | 1 | 2 | 3 | / | pent |
|
||||||
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
|
* | | | | | | | | | 0 | . | * | ; |
|
||||||
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
|
*/
|
||||||
|
[_LOWER] = LAYOUT_ortho_4x12 (
|
||||||
|
_______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, KC_P7, KC_P8, KC_P9, KC_PMNS, _______,
|
||||||
|
_______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, KC_P4, KC_P5, KC_P6, KC_PPLS, _______,
|
||||||
|
_______, KC_F9, KC_F10, KC_F11, KC_F12, _______, KC_NLCK, KC_P1, KC_P2, KC_P3, KC_PSLS, _______,
|
||||||
|
_______, _______, _______, _______, _______, _______, _______, _______, KC_P0, KC_PDOT, KC_PAST, KC_SCLN
|
||||||
|
),
|
||||||
|
|
||||||
|
/* Raise
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | |
|
* | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
|
* | caps | | | | | | \ | - | = | [ | ] | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | F7 | F8 | F9 | F10 | F11 | F12 | ` | | | | |
|
* | | | | | | | ` | | | | pgup | |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
* | | | | | | | | | home | pgdn | pgun | end |
|
* | | | | | | | | | | home | pgdn | end |
|
||||||
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
* +--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+
|
||||||
*/
|
*/
|
||||||
[_FN] = LAYOUT_ortho_4x12 (
|
[_RAISE] = LAYOUT_ortho_4x12 (
|
||||||
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
_______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
|
||||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS,
|
KC_CAPS, _______, _______, _______, _______, _______, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______,
|
||||||
_______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_GRV, _______, _______, _______, _______,
|
_______, _______, _______, _______, _______, _______, KC_GRV, KC_QUOT, _______, _______, KC_PGUP, _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_END
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -158,9 +179,9 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
*/
|
*/
|
||||||
[_UNICODE] = LAYOUT_ortho_4x12 (
|
[_UNICODE] = LAYOUT_ortho_4x12 (
|
||||||
_______, X(EXCL), X(WORR), E_UNIC, X(EURO), X(TONG), Y_UNIC, U_UNIC, I_UNIC, O_UNIC, X(POUN), _______,
|
_______, X(EXCL), X(WORR), E_UNIC, X(EURO), X(TONG), Y_UNIC, U_UNIC, I_UNIC, O_UNIC, X(POUN), _______,
|
||||||
_______, A_UNIC, X(SMIL), X(DISS), X(SCRE), X(DEGR), X(SMIH), X(NOT), X(QUAR), X(HALF), X(ORDF), X(ORDM),
|
_______, A_UNIC, X(SMIL), X(DISS), X(SCRE), X(DEGR), X(SMIH), X(NOT), X(QUAR), X(HALF), ORD_UN, _______,
|
||||||
_______, X(DIZY), X(ANGR), X(COPY), X(QUAD), X(CUBE), N_UNIC, X(NEUT), X(LDQU), X(RDQU), X(QUES), _______,
|
_______, X(DIZY), X(ANGR), X(COPY), X(QUAD), X(CUBE), N_UNIC, X(NEUT), X(LDQU), X(RDQU), X(ARRU), _______,
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, X(ARRL), X(ARRD), X(ARRU), X(ARRR)
|
_______, _______, _______, _______, _______, _______, _______, _______, X(QUES), X(ARRL), X(ARRD), X(ARRR)
|
||||||
),
|
),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -175,7 +196,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
uint32_t layer_state_set_user(uint32_t state) {
|
uint32_t layer_state_set_user(uint32_t state) {
|
||||||
return update_tri_layer_state(state, _FN, _UNICODE, _ADJUST);
|
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||||
}
|
}
|
||||||
|
|
||||||
void matrix_init_user(void) {
|
void matrix_init_user(void) {
|
||||||
|
|
Loading…
Reference in a new issue