Created
April 6, 2019 19:06
-
-
Save rsheldiii/db03c1d54e1da8c5d32bf4fe81bb026d to your computer and use it in GitHub Desktop.
Gherkin combo patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/keyboards/40percentclub/gherkin/config.h b/keyboards/40percentclub/gherkin/config.h | |
index d0c2be35b..b541e073a 100644 | |
--- a/keyboards/40percentclub/gherkin/config.h | |
+++ b/keyboards/40percentclub/gherkin/config.h | |
@@ -37,6 +37,9 @@ | |
/* Locking resynchronize hack */ | |
#define LOCKING_RESYNC_ENABLE | |
+#define COMBO_COUNT 2 | |
+#define COMBO_TERM 200 | |
+ | |
#ifdef RGB_DI_PIN | |
#define RGBLIGHT_ANIMATIONS | |
#define RGBLED_NUM 0 | |
diff --git a/keyboards/40percentclub/gherkin/keymaps/default/keymap.c b/keyboards/40percentclub/gherkin/keymaps/default/keymap.c | |
index ae6f15862..171f2e2bb 100644 | |
--- a/keyboards/40percentclub/gherkin/keymaps/default/keymap.c | |
+++ b/keyboards/40percentclub/gherkin/keymaps/default/keymap.c | |
@@ -2,6 +2,18 @@ | |
#define FN1_Q LT(1, KC_Q) | |
+enum combos { | |
+ AS_1, | |
+ ASD_2 | |
+}; | |
+const uint16_t PROGMEM ab_combo[] = {KC_A, KC_S, COMBO_END}; | |
+const uint16_t PROGMEM jk_combo[] = {KC_A, KC_S, KC_D, COMBO_END}; | |
+ | |
+combo_t key_combos[COMBO_COUNT] = { | |
+ [AS_1] = COMBO(ab_combo, KC_1), | |
+ [ASD_2] = COMBO(jk_combo, KC_2) | |
+}; | |
+ | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
[0] = LAYOUT_ortho_3x10( | |
diff --git a/keyboards/40percentclub/gherkin/rules.mk b/keyboards/40percentclub/gherkin/rules.mk | |
index 1e0b34641..83f5ab3e3 100644 | |
--- a/keyboards/40percentclub/gherkin/rules.mk | |
+++ b/keyboards/40percentclub/gherkin/rules.mk | |
@@ -70,5 +70,6 @@ NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: htt | |
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | |
AUDIO_ENABLE = no | |
RGBLIGHT_ENABLE = no | |
+COMBO_ENABLE = yes | |
LAYOUTS = ortho_3x10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment