Skip to content

Commit

Permalink
Add mod-taps to num row
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmkk3 authored Nov 13, 2023
1 parent bf2c893 commit d99dea7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
34 changes: 33 additions & 1 deletion config/base.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#define UNDO LC(Z)
#define SLALL LC(A)

/* Key Position Groups */
#define KEYS_L 0 1 2 3 4 10 11 12 13 14 20 21 22 // left-hand keys
#define KEYS_R 5 6 7 8 9 15 16 17 18 19 23 24 25 // right-hand keys
#define THUMBS 26 27 28 29 // thumb keys

/* Behavior Settings */
&sk {
release-after-ms = <250>;
Expand All @@ -31,6 +36,33 @@
};

/ {
behaviors {
mtl: mod_tap_left {
compatible = "zmk,behavior-hold-tap";
label = "MOD_TAP_LEFT";
#binding-cells = <2>;
flavor = "balanced";
tapping-term-ms = <280>;
quick-tap-ms = <175>;
bindings = <&kp>, <&kp>;
hold-trigger-key-positions = <KEYS_R THUMBS>;
hold-trigger-on-release;
global-quick-tap;
};
mtr: mod_tap_right {
compatible = "zmk,behavior-hold-tap";
label = "MOD_TAP_RIGHT";
#binding-cells = <2>;
flavor = "balanced";
tapping-term-ms = <280>;
quick-tap-ms = <175>;
bindings = <&kp>, <&kp>;
hold-trigger-key-positions = <KEYS_L THUMBS>;
hold-trigger-on-release;
global-quick-tap;
};
}

conditional_layers {
compatible = "zmk,conditional-layers";
tri_layer {
Expand Down Expand Up @@ -100,7 +132,7 @@
label = "Num";
bindings = <
&none &none &none &none &none &none &none &none &none &none
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
&mtl LGUI N1 &mtl LALT N2 &mtl LSHFT N3 &mtl LCTRL N4 &kp N5 &kp N6 &mtr LCTRL N7 &mtr LSHFT N8 &mtr LALT N9 &mtr LGUI N0
&none &none &none &none &none &none
&trans &trans &trans &trans
>;
Expand Down
8 changes: 8 additions & 0 deletions images/keymap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion keymap-drawer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ layers:
- ['', '', '', {t: '', type: held}]
num:
- ['', '', '', '', '', '', '', '', '', '']
- [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
- [{t: '1', h: Super}, {t: '2', h: Alt}, {t: '3', h: Shift}, {t: '4', h: Ctrl}, '5',
'6', {t: '7', h: Ctrl}, {t: '8', h: Shift}, {t: '9', h: Alt}, {t: '0', h: Super}]
- ['', '', '', '', '', '']
- [{t: '', type: held}, '', '', {t: '', type: held}]
combos:
Expand Down

0 comments on commit d99dea7

Please sign in to comment.