From 32ff604b008693399dccf2fe9b4429ffac2e41ae Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 5 Aug 2024 13:06:43 +0200 Subject: [PATCH] add alt-layer --- keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c | 4 +++- keyboards/ferris/keymaps/quotengrote/keymap.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c index b3c004e992..94cc49466c 100644 --- a/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c +++ b/keyboards/bastardkb/skeletyl/keymaps/quotengrote/keymap.c @@ -55,9 +55,9 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { return false; } - // combos; https://github.com/qmk/qmk_firmware/blob/master/docs/feature_combo.md enum combos { + C_ALT, C_KA, C_KK, C_ESC, @@ -66,6 +66,7 @@ enum combos { C_WE // Windows Explorer }; +const uint16_t PROGMEM alt_combo[] = {LCTL_T(KC_E), KC_I, COMBO_END}; const uint16_t PROGMEM ka_combo[] = {KC_R, LSFT_T(KC_T), COMBO_END}; const uint16_t PROGMEM kk_combo[] = {LSFT_T(KC_N), KC_I, COMBO_END}; const uint16_t PROGMEM esc_combo[] = {LCTL_T(KC_S), LSFT_T(KC_T), COMBO_END}; @@ -74,6 +75,7 @@ const uint16_t PROGMEM sv_combo[] = {LCTL_T(KC_S), LT(0,KC_C), COMBO_END} const uint16_t PROGMEM we_combo[] = {LT(0,KC_W), LCTL_T(KC_E), COMBO_END}; combo_t key_combos[] = { + [C_ALT] = COMBO(alt_combo, KC_LALT), [C_KA] = COMBO(ka_combo, LCTL(LALT(KC_A))), [C_KK] = COMBO(kk_combo, LCTL(LALT(KC_K))), [C_ESC] = COMBO(esc_combo, KC_ESC), diff --git a/keyboards/ferris/keymaps/quotengrote/keymap.c b/keyboards/ferris/keymaps/quotengrote/keymap.c index 81a4d37fe2..f816014b81 100644 --- a/keyboards/ferris/keymaps/quotengrote/keymap.c +++ b/keyboards/ferris/keymaps/quotengrote/keymap.c @@ -3,6 +3,7 @@ // combos; https://github.com/qmk/qmk_firmware/blob/master/docs/feature_combo.md enum combos { + C_ALT, C_KA, C_KK, C_ESC, @@ -11,6 +12,7 @@ enum combos { C_WE // Windows Explorer }; +const uint16_t PROGMEM alt_combo[] = {LCTL_T(KC_E), KC_I, COMBO_END}; const uint16_t PROGMEM ka_combo[] = {KC_R, LSFT_T(KC_T), COMBO_END}; const uint16_t PROGMEM kk_combo[] = {LSFT_T(KC_N), KC_I, COMBO_END}; const uint16_t PROGMEM esc_combo[] = {LCTL_T(KC_S), LSFT_T(KC_T), COMBO_END}; @@ -19,6 +21,7 @@ const uint16_t PROGMEM sv_combo[] = {LCTL_T(KC_S), LT(0,KC_C), COMBO_END} const uint16_t PROGMEM we_combo[] = {LT(0,KC_W), LCTL_T(KC_E), COMBO_END}; combo_t key_combos[] = { + [C_ALT] = COMBO(alt_combo, KC_LALT), [C_KA] = COMBO(ka_combo, LCTL(LALT(KC_A))), [C_KK] = COMBO(kk_combo, LCTL(LALT(KC_K))), [C_ESC] = COMBO(esc_combo, KC_ESC),