-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
527 additions
and
135 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* https://zmk.dev/docs/config/behaviors | ||
*/ | ||
|
||
< { | ||
flavor = "tap-preferred"; | ||
tapping-term-ms = <200>; | ||
quick-tap-ms = <QUICK_TAP_MS>; | ||
}; | ||
|
||
&mt { | ||
flavor = "balanced"; | ||
tapping-term-ms = <TAPPING_TERM_MS>; | ||
quick-tap-ms = <QUICK_TAP_MS>; | ||
}; | ||
|
||
/ { | ||
behaviors { | ||
|
||
hm: homerow_mods { | ||
compatible = "zmk,behavior-hold-tap"; | ||
#binding-cells = <2>; | ||
tapping-term-ms = <TAPPING_TERM_MS>; | ||
quick-tap-ms = <0>; | ||
flavor = "tap-preferred"; | ||
require-prior-idle-ms = <IDLE_MS>; | ||
bindings = <&kp>, <&kp>; | ||
}; | ||
|
||
td_gui_alt: tap_dance_gui_alt { | ||
compatible = "zmk,behavior-tap-dance"; | ||
label = "TAP_DANCE_GUI_ALT"; | ||
#binding-cells = <0>; | ||
tapping-term-ms = <TD_TAPPING_TERM_MS>; | ||
bindings = <&kp LGUI>, <&kp LALT>; | ||
}; | ||
|
||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* https://zmk.dev/docs/config/combos | ||
*/ | ||
|
||
#define COMBO_(NAME, BINDINGS, KEYPOS, LAYERS, TERM, ...) \ | ||
combo_##NAME { \ | ||
timeout-ms = <TERM>; \ | ||
bindings = <BINDINGS>; \ | ||
key-positions = <KEYPOS>; \ | ||
layers = <LAYERS>; \ | ||
__VA_ARGS__ \ | ||
}; | ||
|
||
#define MINIMUM_SPEED 40 | ||
#define DEFAULT_SPEED 50 | ||
|
||
/ { | ||
combos { | ||
compatible = "zmk,combos"; | ||
/* | ||
KEY POSITIONS | ||
╭────────────────────╮ ╭────────────────────╮ | ||
│ 1 2 3 4 5 │ │ 6 7 8 9 10 │ | ||
│ 13 14 15 16 17 │ │ 18 19 20 21 22 │ | ||
│ 25 26 27 28 29 │ │ 30 31 32 33 34 │ | ||
╰───────────╮ 37 38 │ │ 39 40 ╭───────────╯ | ||
╰────────╯ ╰────────╯ | ||
*/ | ||
|
||
COMBO_(escape, &kp ESC, 1 2, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
COMBO_(tab, &kp TAB, 25 26, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
|
||
COMBO_(back_space, &kp BSPC, 9 10, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
COMBO_(enter, &kp ENTER, 33 34, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
|
||
COMBO_(l_bracket, &kp LBKT, 7 19, DEFAULT COLEMAK LOWER, MINIMUM_SPEED) | ||
COMBO_(r_bracket, &kp RBKT, 8 20, DEFAULT COLEMAK LOWER, MINIMUM_SPEED) | ||
COMBO_(l_par, &kp LPAR, 9 21, DEFAULT COLEMAK LOWER, MINIMUM_SPEED) | ||
COMBO_(r_par, &kp RPAR, 10 22, DEFAULT COLEMAK LOWER, MINIMUM_SPEED) | ||
|
||
COMBO_(next_tab, &kp LC(TAB), 32 33, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
COMBO_(prev_tab, &kp LC(LS(TAB)), 31 32, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
COMBO_(right_desk, &kp LC(RIGHT), 26 27, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
COMBO_(left_desk, &kp LC(LEFT), 25 26, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
|
||
COMBO_(space, &kp SPACE, 37 38, DEFAULT COLEMAK, MINIMUM_SPEED) | ||
}; | ||
}; |
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
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* https://zmk.dev/docs/behaviors/macros | ||
*/ | ||
|
||
#define MACRO_(NAME, TAP, WAIT, CELLS, BINDINGS, ...) \ | ||
/omit-if-no-ref/ macro_##NAME: macro_##NAME { \ | ||
label = #NAME; \ | ||
compatible = "zmk,behavior-macro"; \ | ||
tap-ms = <TAP>; \ | ||
wait-ms = <WAIT>; \ | ||
#binding-cells = <CELLS>; \ | ||
bindings = <BINDINGS>; \ | ||
__VA_ARGS__ \ | ||
}; | ||
|
||
/ { | ||
macros { | ||
|
||
/* | ||
/omit-if-no-ref/ nerd_w_move: nerd_w_macro { | ||
label = "nerd_w_move"; | ||
compatible = "zmk,behavior-macro-one-param"; | ||
tap-ms = <0>; | ||
wait-ms = <0>; | ||
#binding-cells = <0>; | ||
bindings = | ||
<¯o_press &kp LCTRL &kp W>, | ||
<¯o_param_1to1>, | ||
<¯o_tap &kp MACRO_PLACEHOLDER>, | ||
<¯o_pause_for_release>, | ||
<¯o_release &kp LCTRL &kp W>; | ||
}; | ||
*/ | ||
|
||
MACRO_(nerd_l, 1, 1, PARAM_ZERO, &kp LC(W) &kp H) | ||
MACRO_(nerd_r, 1, 1, PARAM_ZERO, &kp LC(W) &kp U) | ||
|
||
lang_ex: lang_change { | ||
compatible = "zmk,behavior-macro"; | ||
#binding-cells = <0>; | ||
bindings | ||
= <¯o_tap &kp RALT> | ||
, <¯o_tap &tog COLEMAK> | ||
; | ||
}; | ||
|
||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* | ||
*/ | ||
|
||
/ { | ||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
colemak_layer { | ||
label = "Colemak"; | ||
bindings = < | ||
// ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ | ||
// 0 1 2 3 4 5 6 7 8 9 10 | ||
XXXXXXXX &kp Q &kp W &kp F &kp P &kp G &kp J &kp L &kp U &kp Y &kp SEMI | ||
XXXXXXXX // ├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 12 13 14 15 16 17 18 19 20 21 22 | ||
XXXXXXXX HM_LP A HM_LR R HM_LM S HM_LI T &kp D &kp H HM_RI N HM_RM E HM_RR I HM_RP O | ||
XXXXXXXX // ├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 24 25 26 27 28 29 30 31 32 33 34 | ||
XXXXXXXX &kp Z &kp X &kp C &kp V &kp B &kp K &kp M &kp COMMA &kp DOT &kp FSLH | ||
XXXXXXXX // ╰───────────────┴───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┴───────────────╯ | ||
// 36 37 38 39 40 | ||
XXXXXXXX &td_gui_alt &mo LOWER &mo RAISE &kp SPACE | ||
// ╰───────────────┴───────────────╯ ╰───────────────┴───────────────╯ | ||
XXXXXXXX | ||
>; | ||
}; | ||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* | ||
*/ | ||
|
||
/ { | ||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
default_layer { | ||
label = "Default"; | ||
bindings = < | ||
// ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ | ||
// 0 1 2 3 4 5 6 7 8 9 10 | ||
XXXXXXXX &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P | ||
XXXXXXXX // ├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 12 13 14 15 16 17 18 19 20 21 22 | ||
XXXXXXXX HM_LP A HM_LR S HM_LM D HM_LI F &kp G &kp H HM_RI J HM_RM K HM_RR L HM_RP SEMI | ||
XXXXXXXX // ├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 24 25 26 27 28 29 30 31 32 33 34 | ||
XXXXXXXX &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH | ||
XXXXXXXX // ╰───────────────┴───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┴───────────────╯ | ||
// 36 37 38 39 40 | ||
XXXXXXXX &td_gui_alt &mo LOWER &mo RAISE &kp SPACE | ||
// ╰───────────────┴───────────────╯ ╰───────────────┴───────────────╯ | ||
XXXXXXXX | ||
>; | ||
|
||
}; | ||
}; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* | ||
*/ | ||
|
||
/ { | ||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
lower_layer { | ||
label = "Lower"; | ||
bindings = < | ||
// ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 12 13 14 15 16 17 18 19 20 21 22 23 | ||
XXXXXXXX &lang_ex &kp INS &kp HOME &kp PG_UP MOVE_LEFT MOVE_RIGHT &kp MINUS &kp KP_PLUS &kp LBKT &kp RBKT XXXXXXXX | ||
// ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 24 25 26 27 28 29 30 31 32 33 34 35 | ||
XXXXXXXX &tog COLEMAK &kp DEL &kp END &kp PG_DN ¯o_nerd_l ¯o_nerd_r &kp UNDER &kp EQUAL XXXXXXXX &kp BSLH XXXXXXXX | ||
// ╰───────────────┴───────────────┴───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┴───────────────┴───────────────╯ | ||
// 36 37 38 39 40 41 | ||
XXXXXXXX ________ ________ &mo RAISE ________ XXXXXXXX | ||
// ╰───────────────┴───────────────┴───────────────╯ ╰───────────────┴───────────────┴─────────────── | ||
>; | ||
|
||
bindings = < | ||
// ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ ╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮ | ||
// 0 1 2 3 4 5 6 7 8 9 10 | ||
XXXXXXXX &kp GRAVE ________ ________ ________ ________ ________ &kp N7 &kp N8 &kp N9 &kp N0 | ||
XXXXXXXX // ├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 12 13 14 15 16 17 18 19 20 21 22 | ||
XXXXXXXX ________ ________ ________ ________ ________ ________ &kp N4 &kp N5 &kp N6 &kp SQT | ||
XXXXXXXX // ├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┼───────────────┤ | ||
// 24 25 26 27 28 29 30 31 32 33 34 | ||
XXXXXXXX ________ ________ ________ ________ ________ ________ &kp N1 &kp N2 &kp N3 &kp BSLH | ||
XXXXXXXX // ╰───────────────┴───────────────┼───────────────┼───────────────┼───────────────┤ ├───────────────├───────────────┼───────────────┼───────────────┴───────────────╯ | ||
// 36 37 38 39 40 | ||
XXXXXXXX ________ ________ &mo RAISE &kp N0 | ||
// ╰───────────────┴───────────────╯ ╰───────────────┴───────────────╯ tab enter space bspc raise lower | ||
XXXXXXXX | ||
>; | ||
|
||
|
||
}; | ||
}; | ||
}; |
Oops, something went wrong.