From 9304514c40191ea3b54b28d10751e86471ca8e34 Mon Sep 17 00:00:00 2001 From: Nicksname Date: Sun, 2 Oct 2022 02:46:18 +0200 Subject: [PATCH] =?UTF-8?q?Helligkeit=20angepasst;=20RAlt=20zu=20LAlt=20ge?= =?UTF-8?q?wechselt=20f=C3=BCr=20lalt=20+=20tab;=20Qwertz-layer=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.h | 5 ++++- keymap.c | 34 +++++++++++++++++++--------------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/config.h b/config.h index f6d1d2c..cff0114 100644 --- a/config.h +++ b/config.h @@ -2,4 +2,7 @@ #define TAPPING_TERM 240 #define IGNORE_MOD_TAP_INTERRUPT -#define SPLIT_LED_STATE_ENABLE \ No newline at end of file +#define SPLIT_LED_STATE_ENABLE +#define SPLIT_LAYER_STATE_ENABLE +#undef RGBLIGHT_LIMIT_VAL +#define RGBLIGHT_LIMIT_VAL 80 \ No newline at end of file diff --git a/keymap.c b/keymap.c index 0fdcbe4..6e1da99 100644 --- a/keymap.c +++ b/keymap.c @@ -1,29 +1,21 @@ #include QMK_KEYBOARD_H -/* enum custom_keycodes { - NEO = SAFE_RANGE, - SYMB, - NAV, - NUM, - FUNCT -};*/ - const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { // NEO [0] = LAYOUT( KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_TAB, KC_X, KC_V, KC_L, KC_C, KC_W, KC_K, KC_H, KC_G, KC_F, KC_Q, KC_MINS, - KC_LCTL, KC_U, KC_I, MT(MOD_RALT,KC_A), MT(MOD_LGUI,KC_E), KC_O, KC_S, MT(MOD_RGUI,KC_N), MT(MOD_LALT,KC_R), KC_T, KC_D, KC_Z, + KC_LCTL, KC_U, KC_I, MT(MOD_LALT,KC_A), MT(MOD_LGUI,KC_E), KC_O, KC_S, MT(MOD_RGUI,KC_N), MT(MOD_LALT,KC_R), KC_T, KC_D, KC_Z, KC_LSFT, KC_LBRC, KC_SCLN, KC_QUOT, KC_P, KC_Y, KC_MUTE, KC_END, KC_B, KC_M, KC_COMM, KC_DOT, KC_J, KC_RSFT, KC_LGUI, OSL(1), KC_ENT, KC_SPC, TO(2), KC_LALT ), // SYMB [1] = LAYOUT( - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RALT(KC_Q), LSFT(KC_SLASH), RALT(KC_8), RALT(KC_9), KC_GRV, KC_EXLM, KC_NUBS, LSFT(KC_NUBS), KC_RPRN, KC_CIRC, _______, - _______, RALT(KC_MINS), KC_AMPR, RALT(KC_7), RALT(KC_0), KC_RCBR, KC_UNDS, KC_ASTR, KC_LPRN, KC_SLASH, KC_AT, _______, + _______, RALT(KC_MINS), KC_AMPR, LALT(KC_7), RALT(KC_0), KC_RCBR, KC_UNDS, KC_ASTR, KC_LPRN, KC_SLASH, KC_AT, _______, _______, KC_BSLS, KC_DLR, RALT(KC_NUBS), RALT(KC_RBRC), KC_PLUS, _______, _______, KC_RBRC, KC_PERC, _______, _______, KC_PIPE, _______, _______, TO(0), _______, _______, _______, _______ ), @@ -33,8 +25,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, KC_BSPC, KC_UP, KC_DEL, KC_PGDN, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_LEFT, KC_DOWN, KC_RGHT, KC_END, _______, _______, _______, _______, _______, _______, - _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, - _______, TO(0), _______, _______, TO(3), _______ + _______, _______, _______, LCTL(KC_TAB), RCS(KC_TAB), _______, _______, _______, _______, _______, _______, _______, _______, _______, + _______, TO(0), _______, _______, TO(3), TO(4) ), // FUNCT @@ -42,9 +34,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_F12, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, RGB_TOG, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, RGB_MOD, KC_MPRV, KC_MNXT, KC_VOLU, KC_PGUP, KC_UNDS, KC_EQL, KC_HOME, RGB_HUI, RGB_SAI, RGB_VAI, KC_BSLS, - KC_MUTE, KC_MSTP, KC_MPLY, KC_VOLD, KC_PGDN, KC_MINS, KC_LPRN, _______, KC_PLUS, KC_END, RGB_HUD, RGB_SAD, RGB_VAD, _______, + _______, KC_MSTP, KC_MPLY, KC_VOLD, KC_PGDN, KC_MINS, KC_LPRN, _______, KC_PLUS, KC_END, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, TO(0), _______, _______, _______, _______ - ) + ), + + // QWERTZ + [4] = LAYOUT( + KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, + KC_LCTL, KC_A, KC_D, MT(MOD_LALT,KC_S), MT(MOD_LGUI, KC_F), KC_G, KC_H, MT(MOD_LGUI,KC_J), MT(MOD_LALT,KC_K), KC_L, KC_SCLN, KC_QUOT, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_MUTE, _______, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLASH, KC_RSFT, + _______, TO(0), _______, _______, _______, _______ + ) }; void rgb_matrix_indicators_kb(void) { @@ -67,4 +68,7 @@ void rgb_matrix_indicators_kb(void) { if(IS_LAYER_ON(3)){ rgb_matrix_set_color(3, RGB_RED); } + if(IS_LAYER_ON(4)){ + rgb_matrix_set_color(4, RGB_RED); + } }