Skip to content

Commit

Permalink
Switche 3 and 4 key combos
Browse files Browse the repository at this point in the history
  • Loading branch information
snth authored Oct 30, 2024
1 parent c6782ad commit 1fb9862
Showing 1 changed file with 27 additions and 45 deletions.
72 changes: 27 additions & 45 deletions config/corneish_zen.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ behaviors {
bindings = <&kp LC(LG(RIGHT))>;
layers = <DFT NAV NUM SYM>;
};
combo3_up_lhs {
combo3_pgup_lhs {
timeout-ms = <50>;
key-positions = <12 13 14>;
bindings = <&kp UP>;
bindings = <&kp PGUP>;
layers = <DFT NAV NUM SYM>;
};

Expand All @@ -369,24 +369,24 @@ behaviors {
bindings = <&kp RIGHT>;
layers = <DFT NAV NUM SYM>;
};
combo3_down_lhs {
combo3_pgdn_lhs {
timeout-ms = <50>;
key-positions = <22 23 24>;
bindings = <&kp DOWN>;
bindings = <&kp PGDN>;
layers = <DFT NAV NUM SYM>;
};

// LHS 4-key combos
combo4_toggle_num_lock {
combo4_toggle_nav_lock {
timeout-ms = <50>;
key-positions = <0 1 2 3>;
bindings = <&tog NUM_LCK>;
bindings = <&tog NAV_LCK>;
layers = <DFT NAV NUM SYM>;
};
combo4_enter {
combo4_toggle_num_lock {
timeout-ms = <50>;
key-positions = <1 2 3 4>;
bindings = <&kp ENTER>;
bindings = <&tog NUM_LCK>;
layers = <DFT NAV NUM SYM>;
};

Expand All @@ -396,17 +396,17 @@ behaviors {
bindings = <&kp ESC>;
layers = <DFT NAV NUM SYM>;
};
combo4_toggle_nav_lock {
combo4_pgup_lhs {
timeout-ms = <50>;
key-positions = <11 12 13 14>;
bindings = <&tog NAV_LCK>;
bindings = <&kp PGUP>;
layers = <DFT NAV NUM SYM>;
};

combo4_pgup_lhs {
combo4_enter {
timeout-ms = <50>;
key-positions = <20 21 22 23>;
bindings = <&kp PGUP>;
bindings = <&kp ENTER>;
layers = <DFT NAV NUM SYM>;
};
combo4_pgdn_lhs {
Expand Down Expand Up @@ -455,25 +455,7 @@ behaviors {
timeout-ms = <50>;
key-positions = <15 25>;
bindings = <&kp PIPE>;
layers = <DFT>;
};
combo2_nav_lck_vert {
timeout-ms = <50>;
key-positions = <15 25>;
bindings = <&tog NAV_LCK>;
layers = <NAV>;
};
combo2_num_lck_vert {
timeout-ms = <50>;
key-positions = <15 25>;
bindings = <&tog NUM_LCK>;
layers = <NUM>;
};
combo2_sym_lck_vert {
timeout-ms = <50>;
key-positions = <15 25>;
bindings = <&tog SYM_LCK>;
layers = <SYM>;
layers = <DFT NAV NUM SYM>;
};
combo2_bslh_vert {
timeout-ms = <50>;
Expand Down Expand Up @@ -597,10 +579,10 @@ behaviors {
layers = <DFT NAV NUM SYM>;
};

combo3_up_rhs {
combo3_pgup_rhs {
timeout-ms = <50>;
key-positions = <15 16 17>;
bindings = <&kp UP>;
bindings = <&kp PGUP>;
layers = <DFT NAV NUM SYM>;
};
combo3_home_rhs {
Expand All @@ -616,39 +598,39 @@ behaviors {
layers = <DFT NAV NUM SYM>;
};

combo3_down_rhs {
combo3_pgdn_rhs {
timeout-ms = <50>;
key-positions = <25 26 27>;
bindings = <&kp DOWN>;
bindings = <&kp PGDN>;
layers = <DFT NAV NUM SYM>;
};
combo3_left_rhs {
combo3_up_rhs {
timeout-ms = <50>;
key-positions = <26 27 28>;
bindings = <&kp LEFT>;
bindings = <&kp UP>;
layers = <DFT NAV NUM SYM>;
};
combo3_right_rhs {
combo3_down_rhs {
timeout-ms = <50>;
key-positions = <27 28 29>;
bindings = <&kp RIGHT>;
bindings = <&kp DOWN>;
layers = <DFT NAV NUM SYM>;
};

// RHS 4-key combos

combo4_capslock_rhs {
combo4_toggle_sym_lock {
timeout-ms = <50>;
key-positions = <5 6 7 8>;
bindings = <&kp CAPSLOCK>;
bindings = <&tog SYM_LCK>;
layers = <DFT NAV NUM SYM>;
};
combo4_toggle_sym_lock {
};
combo4_capslock_rhs {
timeout-ms = <50>;
key-positions = <6 7 8 9>;
bindings = <&tog SYM_LCK>;
bindings = <&kp CAPSLOCK>;
layers = <DFT NAV NUM SYM>;
};
};

combo4_restore_default_layer {
timeout-ms = <50>;
Expand Down

0 comments on commit 1fb9862

Please sign in to comment.