Skip to content

Commit

Permalink
feat: Remove combos and re-organize symbols layer (#23)
Browse files Browse the repository at this point in the history
Remove combos used for ESC, tmux, TAB and emojis and move them to symbols layer instead.

Switch key positions between L2 and Backspace.
  • Loading branch information
cdelmoral committed Oct 14, 2023
1 parent e0c3bd3 commit 66bb310
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 54 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,25 @@ A 36 keys split keyboard layout implemented with [ZMK](https://zmk.dev/).
The layout is designed for a keyboard with 3x5 main keys plus 3 thumb keys per split
(e.g. [Corne Keyboard](https://github.com/foostan/crkbd)) and optimized to use VIM and tmux in macOS.

## Layout

The layout design tries to adhere to the following concepts as much as possible:

- Familiarity with a standard keyboard
- Avoid complexity as much as possible
- Ergonomic design
- Wireless ready

![keyboard-layout](images/layout.png)

### Legend

- PU/PD: Page Up/Page Down
- 1P: 1Password
- D1/D2/D3/D4: macOS shortcuts for navigating virtual desktops
- BP/BN/BC: Bluetooth Previous/Next/Clear
- tmux: Ctrl + B (tmux shortcut)

## References

Most of the concepts used in this layout can be found in [rafaelromao](https://github.com/rafaelromao/keyboards)'s repo.
Expand Down
60 changes: 6 additions & 54 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -45,54 +45,6 @@
};
};

combos {
compatible = "zmk,combos";

/**
* Key press `LCTRL + B` to enter tmux mode when keys (S) and (D) are tapped.
* Only enabled on Alpha layer.
*/
tmux {
timeout-ms = <20>;
key-positions = <14 15>;
bindings = <&kp LC(B)>;
layers = <0>;
};

/**
* Key press `ESC` when keys (D) and (F) are tapped.
* Only enabled on Alpha layer.
*/
escape_key {
timeout-ms = <20>;
key-positions = <15 16>;
bindings = <&kp ESC>;
layers = <0>;
};

/**
* Key press `TAB' when keys (K) and (L) are tapped.
* Enabled on Alpha and NumDir layer.
*/
tab_key {
timeout-ms = <20>;
key-positions = <20 21>;
bindings = <&kp TAB>;
layers = <0 2>;
};

/**
* Bring up emojis menu in OS X when keys (J) and (K) are tapped
* Only enabled on Alpha layer.
*/
emojis_key {
timeout-ms = <20>;
key-positions = <19 20>;
bindings = <&kp LG(LC(SPACE))>;
layers = <0>;
};
};

keymap {
compatible = "zmk,keymap";

Expand All @@ -105,19 +57,19 @@
&none &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &none
&none &kp A &lhr LALT S &lhr LCMD D &lhr LCTRL F &kp G &kp H &rhr LCTRL J &rhr LCMD K &rhr LALT L &kp SEMI &none
&none &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH &none
&mo L2 &kp BSPC &kp LSHFT &kp SPACE &mo L1 &sl L3
&kp BSPC &mo L2 &kp LSHFT &kp SPACE &mo L1 &sl L3
>;
};

/**
* Symbols layer (L1)
*/
layer_1 {
label = "SYMBOLS";
label = "RAISE";
bindings = <
&none &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp LBKT &kp RBKT &kp PLUS &kp MINUS &kp ASTRK &kp PRCNT &none
&none &kp AMPS &kp UNDER &kp DQT &kp SQT &kp LPAR &kp RPAR &kp ENTER &kp DEL &kp BSLH &kp SEMI &none
&none &kp PIPE &kp TILDE &kp CARET &kp GRAVE &kp LBRC &kp RBRC &kp EQUAL &kp COMMA &kp DOT &kp SLASH &none
&none &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp LBKT &kp RBKT &kp PLUS &kp MINUS &kp ASTRK &kp PRCNT &none
&none &kp AMPS &kp UNDER &kp DQT &kp SQT &kp LPAR &kp RPAR &kp ENTER &kp ESC &kp LC(B) &kp DEL &none
&none &kp PIPE &kp TILDE &kp CARET &kp GRAVE &kp LBRC &kp RBRC &kp EQUAL &kp TAB &kp LG(LC(SPACE)) &kp BSLH &none
&none &kp BSPC &kp LSHFT &kp SPACE &none &none
>;
};
Expand All @@ -126,7 +78,7 @@
* Number and directions layer (L2)
*/
layer_2 {
label = "NUMDIR";
label = "LOWER";
bindings = <
&none &none &none &kp UP &none &none &kp ASTRK &kp N7 &kp N8 &kp N9 &kp MINUS &none
&none &kp LA(LEFT) &kp LEFT &kp DOWN &kp RIGHT &kp LA(RIGHT) &kp SLASH &kp N4 &kp N5 &kp N6 &kp PLUS &none
Expand Down
Binary file modified images/layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 66bb310

Please sign in to comment.