commit 9d1ee7e0931920e517bb850dc79a2b0257dc5f7e
parent 462073e975975084a8db801b735eb8355d591c27
Author: typable <contact@typable.dev>
Date: Sat, 28 Oct 2023 23:18:33 +0200
feat: Added gaming layer
Diffstat:
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/config.h b/config.h
@@ -5,4 +5,4 @@
#define VIAL_UNLOCK_COMBO_ROWS { 2, 3, 0, 0, 0 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 1, 0, 2, 4 }
-#define DYNAMIC_KEYMAP_LAYER_COUNT 6
+#define DYNAMIC_KEYMAP_LAYER_COUNT 7
diff --git a/keymap.c b/keymap.c
@@ -11,15 +11,17 @@
#define NAV 3
#define MUL 4
#define FUN 5
+#define GMN 6
// hold layer
#define KC_TAL1 LT(NUM, KC_TAB)
#define KC_BSL2 LT(SYM, KC_BSPC)
-#define KC_ENL4 LT(4, KC_ENT)
+#define KC_ENL4 LT(MUL, KC_ENT)
#define KC_SPL3 LT(NAV, KC_SPC)
// toggle layer
-#define KC_TG5 TG(5)
+#define KC_TG5 TG(FUN)
+#define KC_TG6 TG(GMN)
// home rows left
#define KC_CTA LCTL_T(KC_A)
@@ -175,7 +177,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[MUL] = LAYOUT(
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_TG5, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
- XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_TG6, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
XXXXXXX, XXXXXXX, KC_TRNS, KC_TRNS
),
@@ -188,5 +190,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_F11, KC_F12, XXXXXXX, XXXXXXX, XXXXXXX, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS, KC_TG5, KC_TRNS
),
+
+ // --- 6: GMN LAYER -------------------------------------------------------------------------------
+
+ [GMN] = LAYOUT(
+ KC_ESC, XXXXXXX, KC_W, KC_E, KC_G, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_LSFT, KC_A, KC_S, KC_D, KC_F, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_Q, XXXXXXX, KC_C, XXXXXXX, XXXXXXX, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_SPC, KC_LCTL, KC_TG6, KC_TRNS
+ ),
};