Skip to content

Commit

Permalink
corne
Browse files Browse the repository at this point in the history
  • Loading branch information
EricNeiman committed May 5, 2024
1 parent 8a5ec6e commit da0e213
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
---
include:
- board: nice_nano_v2
shield: sofle_left
shield: corne_left
- board: nice_nano_v2
shield: sofle_right
shield: corne_right
- board: nice_nano_v2
shield: settings_reset
6 changes: 6 additions & 0 deletions config/corne.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Uncomment the following lines to enable the Corne RGB Underglow
# CONFIG_ZMK_RGB_UNDERGLOW=y
# CONFIG_WS2812_STRIP=y

# Uncomment the following line to enable the Corne OLED Display
# CONFIG_ZMK_DISPLAY=y
111 changes: 111 additions & 0 deletions config/corne.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/*
* Copyright (c) 2020 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>

/ {
macros {
ctrl_alt_home: ctrl_alt_home {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&macro_press &kp LCTRL &kp LALT>,
<&macro_tap &kp HOME>,
<&macro_release &kp LCTRL &kp LALT>;
};
ctrl_win_left: ctrl_win_left {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&macro_press &kp LCTRL &kp LGUI>,
<&macro_tap &kp LEFT>,
<&macro_release &kp LCTRL &kp LGUI>;
};
ctrl_win_right: ctrl_win_right {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&macro_press &kp LCTRL &kp LGUI>,
<&macro_tap &kp RIGHT>,
<&macro_release &kp LCTRL &kp LGUI>;
};
ctrl_shift_esc: ctrl_shift_esc {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&macro_press &kp LCTRL &kp LSHIFT>,
<&macro_tap &kp ESC>,
<&macro_release &kp LCTRL &kp LSHIFT>;
};
alt_f4: alt_f4 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&macro_press &kp LALT>,
<&macro_tap &kp F4>,
<&macro_release &kp LALT>;
};
ctrl_shift_r: ctrl_shift_r {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&macro_press &kp LCTRL &kp LSHIFT>,
<&macro_tap &kp R>,
<&macro_release &kp LCTRL &kp LSHIFT>;
};
win_l: win_l {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&macro_press &kp LGUI>,
<&macro_tap &kp L>,
<&macro_release &kp LGUI>;
};
};
};

/ {
conditional_layers {
compatible = "zmk,conditional-layers";
tri_layer {
if-layers = <1 2>;
then-layer = <3>;
};
};
};

/ {
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp ESC
&kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT
>;
};
lower_layer {
bindings = <
&kp TAB &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
&kp LCTRL &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
&kp LSHFT &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
>;
};
raise_layer {
bindings = <
&kp TAB &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp BSPC
&kp LCTRL &trans &trans &trans &trans &kp F5 &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
&kp LSHFT &trans &trans &trans &trans &kp F12 &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
>;
};
pairing_layer {
bindings = <
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none
&none &trans &none &none &trans &none
>;
};
};
};

0 comments on commit da0e213

Please sign in to comment.