Skip to content

Commit

Permalink
try to redefine KEYS_L KEYS_R to fit Corne keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
timhansinger committed Feb 1, 2024
1 parent ccf4fc2 commit 75903d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 4 additions & 3 deletions config/base.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@

/* Homerow mods */

// we move this definition into the actual keyboard keymaps (e.g. into corne.keymap)
/* 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
#define THUMBS LH2 LH1 LH0 RH0 RH1 RH2 // thumbs
// #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
// #define THUMBS LH2 LH1 LH0 RH0 RH1 RH2 // thumbs

#define MAKE_HRM(NAME, HOLD, TAP, TRIGGER_POS) \
ZMK_BEHAVIOR(NAME, hold_tap, \
Expand Down
9 changes: 4 additions & 5 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
/* activate bluetooth */
#define CONFIG_WIRELESS 1

/* source the main keymap */
#include "base.keymap"

#undef KEYS_L
#undef KEYS_R
/* 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"

/* use 5-column layout for Zen */
// / { chosen { zmk,matrix_transform = &five_column_transform; }; };

Expand Down

0 comments on commit 75903d6

Please sign in to comment.