Skip to content

Commit

Permalink
update keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
rogermeletta committed Jul 4, 2024
1 parent bcf676e commit 2a01bb1
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@

led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";
label = "WS2812";

/* SPI */

Expand Down Expand Up @@ -93,10 +92,9 @@
};
left_encoder: encoder_left {
compatible = "alps,ec11";
label = "LEFT_ENCODER";
a-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
b-gpios = <&pro_micro_d 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
resolution = <4>;
steps = <80> /* Change this to your encoder's number of detents times 4 */;
};

sensors {
Expand Down Expand Up @@ -241,7 +239,6 @@
behaviors {
td_caps: tap_caps {
compatible = "zmk,behavior-tap-dance";
label = "Tap shift and caps";
#binding-cells = <0>;
tapping-term-ms = <200>;
bindings =
Expand All @@ -251,7 +248,6 @@
};
hm: homerow_mods {
compatible = "zmk,behavior-hold-tap";
label = "HOMEROW_MODS";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick_tap_ms = <200>;
Expand All @@ -266,11 +262,11 @@
compatible = "zmk,keymap";

qwerty_layer {
label = "QWERTY";
display-name = "QWERTY";
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP>;

// -----------------------------------------------------------------------------------
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP |
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP |
// | ESC | A | S | D | F | G | | H | J | K | L | ; | RET |
// | + | Z | X | C | V | B | | N | M | , | . | / | SHIFT |
// | CTRL | CMD | SPC | | RET | SPC | ALT |
Expand All @@ -285,7 +281,7 @@


colmak_layer {
label = "COLEMAK";
display-name = "COLEMAK";
sensor-bindings = <&inc_dec_kp C_VOL_DN C_VOL_UP>;

// -------------------------------------------------------------0--------------------
Expand All @@ -304,7 +300,7 @@


num_layer {
label = "NUM";
display-name = "NUM";
sensor-bindings = <&inc_dec_kp C_PREV C_NEXT>;

// -------------------------------------------------------------------------------
Expand All @@ -323,7 +319,7 @@


misc_layer {
label = "MISC";
display-name = "MISC";
sensor-bindings = <&inc_dec_kp LEFT RIGHT>;

// -----------------------------------------------------------------------------------------
Expand All @@ -342,7 +338,7 @@


system_layer {
label = "SYSTEM";
display-name = "SYSTEM";
sensor-bindings = <&inc_dec_kp U_UNDO U_REDO>;

// --------------------------------------------------------------------------------------------------------------------------------
Expand All @@ -361,8 +357,8 @@


fast_layer {
label = "FAST";
sensor-bindings = <&inc_dec_kp PGDN PGUP>;
display-name = "FAST";
sensor-bindings = <&inc_dec_kp PG_DN PG_UP>;

// -----------------------------------------------------------------------------------------------------------------------------
// | | | | | | | | | | Mouse up | | | |
Expand All @@ -380,8 +376,8 @@


slow_layer {
label = "SLOW";
sensor-bindings = <&inc_dec_kp PGDN PGUP>;
display-name = "SLOW";
sensor-bindings = <&inc_dec_kp PG_DN PG_UP>;

// -----------------------------------------------------------------------------------------------------------------------------
// | | | | | | | | | | Mouse up | | | |
Expand All @@ -398,3 +394,11 @@
};
};
};


&sensors {
// Change this to your encoder's number of detents.
// If you have multiple encoders with different detents, see
// https://zmk.dev/docs/config/encoders#keymap-sensor-config
triggers-per-rotation = <20>;
};

0 comments on commit 2a01bb1

Please sign in to comment.