1
0
Fork 0

Arreglar layout

This commit is contained in:
Cat /dev/Nulo 2022-04-03 12:20:19 -03:00
parent 26db839319
commit 4d863ed6c5

View file

@ -3,6 +3,17 @@
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#undef S
#undef A
#undef C
#undef G
#define S LSFT_T
#define A LALT_T
#define C LCTL_T
#define G LGUI_T
#define R RALT_T
#define RALT_A RALT_T(KC_A) #define RALT_A RALT_T(KC_A)
#define ALT_S LALT_T(KC_S) #define ALT_S LALT_T(KC_S)
#define CTL_D LCTL_T(KC_D) #define CTL_D LCTL_T(KC_D)
@ -22,37 +33,39 @@ enum layers {
NUM, NUM,
}; };
#define I_SPC LT(1, KC_SPC) #define LA_SYM MO(SYM)
#define I_BSPC LT(2, KC_BSPC) #define LA_NAV MO(NAV)
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[DEF] = LAYOUT( [DEF] = LAYOUT(
KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
RALT_A, ALT_S, CTL_D, GUI_F, KC_G, KC_H, GUI_J, CTL_K, ALT_L, RALT_SCLN, S(KC_A),A(KC_S),C(KC_D),G(KC_F),R(KC_G), R(KC_H),G(KC_J),C(KC_K),A(KC_L),S(KC_SCLN),
KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX,XXXXXXX,KC_N, KC_M, KC_COMM,KC_DOT, KC_QUOT, KC_Z, KC_X, KC_C, KC_V, KC_B, XXXXXXX,XXXXXXX,KC_N, KC_M, KC_COMM,KC_DOT, KC_QUOT,
XXXXXXX,XXXXXXX,XXXXXXX,LA_NAV, KC_LSFT,XXXXXXX,XXXXXXX,KC_SPC, LA_SYM, XXXXXXX,XXXXXXX,XXXXXXX XXXXXXX,XXXXXXX,XXXX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),A(KC_NO),C(KC_NO),G(KC_NO),KC_BSPC, KC_LEFT,KC_DOWN,KC_UP, KC_RGHT,XXXXXXX,
XXXXXXX,XXXXXXX,OS_RALT,XXXXXXX,KC_PSCR,XXXXXXX,XXXXXXX,XXXXXXX,KC_PGDN,KC_PGUP,XXXXXXX,KC_ENT, XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_PSCR,XXXXXXX,XXXXXXX,XXXXXXX,KC_PGDN,KC_PGUP,XXXXXXX,KC_ENT,
XXXXXXX,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,XXXXXXX XXXXXXX,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,XXXXXXX
), ),
[NUM] = LAYOUT( [NUM] = LAYOUT(
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,
XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX,KC_F11, KC_F12, XXXXXXX,XXXXXXX,XXXXXXX,XXXXXXX, S(KC_NO),A(KC_NO),C(KC_NO),G(KC_NO),R(KC_F11), R(KC_F12),G(KC_NO),C(KC_NO),A(KC_NO),S(KC_NO),
KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX,XXXXXXX,KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, XXXXXXX,XXXXXXX,KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
XXXXXXX,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,XXXXXXX XXXXXXX,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,_______,_______,XXXXXXX,XXXXXXX,XXXXXXX
) )
}; };
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, SYM, NAV, NUM);
}