Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
codeyoma committed Jan 30, 2024
1 parent d7ecde2 commit 6c98b78
Show file tree
Hide file tree
Showing 19 changed files with 527 additions and 135 deletions.
165 changes: 31 additions & 134 deletions config/corne.keymap

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions custom_34/behaviors.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* https://zmk.dev/docs/config/behaviors
*/

&lt {
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>;
};

};
};
48 changes: 48 additions & 0 deletions custom_34/combos.dtsi
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)
};
};
2 changes: 1 addition & 1 deletion custom/macros.dtsi → custom_34/macros.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
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_change: lang_change {
lang_ex: lang_change {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings
Expand Down
File renamed without changes.
File renamed without changes.
48 changes: 48 additions & 0 deletions custom_42/macros.dtsi
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 =
<&macro_press &kp LCTRL &kp W>,
<&macro_param_1to1>,
<&macro_tap &kp MACRO_PLACEHOLDER>,
<&macro_pause_for_release>,
<&macro_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
= <&macro_tap &kp RALT>
, <&macro_tap &tog COLEMAK>
;
};

};
};
29 changes: 29 additions & 0 deletions layer_34/L1-colemak.dtsi
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
>;
};
};
};
30 changes: 30 additions & 0 deletions layer_34/L1-qwerty.dtsi
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
>;

};
};
};
44 changes: 44 additions & 0 deletions layer_34/L2-lower.dtsi
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 &macro_nerd_l &macro_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
>;


};
};
};
Loading

0 comments on commit 6c98b78

Please sign in to comment.