From 628a9969adb0098a6866d6fc8c7ee24df0ca47ff Mon Sep 17 00:00:00 2001 From: Tim Hansinger Date: Thu, 1 Feb 2024 20:20:34 +0100 Subject: [PATCH] Redefine KEYS_L KEYS_R to fit Corne 6-column keymap --- config/base.keymap | 7 ++++++- config/corne.keymap | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/base.keymap b/config/base.keymap index 52423ac9e..6894d3430 100644 --- a/config/base.keymap +++ b/config/base.keymap @@ -54,7 +54,12 @@ /* Homerow mods */ -// we move this definition into the actual keyboard keymaps (e.g. into corne.keymap) +/* Definition for Corne (6-column layout) */ +#include "../zmk-nodefree-config/keypos_def/keypos_42keys.h" +#define KEYS_L LT0 LT1 LT2 LT3 LT4 LT5 LM0 LM1 LM2 LM3 LM4 LM5 LB0 LB1 LB2 LB3 LB4 LB5 // left hand +#define KEYS_R RT0 RT1 RT2 RT3 RT4 RT5 RM0 RM1 RM2 RM3 RM4 RM5 RB0 RB1 RB2 RB3 RB4 RB5 // right hand +#define THUMBS LH2 LH1 LH0 RH0 RH1 RH2 // thumbs + /* use helper macros to define left and right hand keys */ // #define KEYS_L LT0 LT1 LT2 LT3 LT4 LM0 LM1 LM2 LM3 LM4 LB0 LB1 LB2 LB3 LB4 // left hand // #define KEYS_R RT0 RT1 RT2 RT3 RT4 RM0 RM1 RM2 RM3 RM4 RB0 RB1 RB2 RB3 RB4 // right hand diff --git a/config/corne.keymap b/config/corne.keymap index 353f37d06..e34f8b28f 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -20,10 +20,6 @@ /* activate bluetooth */ #define CONFIG_WIRELESS 1 -/* define the left and right keys before sourcing the main keymap */ -#define KEYS_L LT0 LT1 LT2 LT3 LT4 LT5 LM0 LM1 LM2 LM3 LM4 LM5 LB0 LB1 LB2 LB3 LB4 LB5 // left hand -#define KEYS_R RT0 RT1 RT2 RT3 RT4 RT5 RM0 RM1 RM2 RM3 RM4 RM5 RB0 RB1 RB2 RB3 RB4 RB5 // right hand - /* source the main keymap */ #include "base.keymap"