Skip to content

Commit

Permalink
add combos and remove the old keymap
Browse files Browse the repository at this point in the history
Signed-off-by: ChairBorn <[email protected]>
  • Loading branch information
ChairBorn committed Dec 9, 2024
1 parent d871ea3 commit efff179
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 60 deletions.
32 changes: 28 additions & 4 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,30 @@
#include <dt-bindings/zmk/keys.h>

/ {
combos {
compatible = "zmk,combos";

vol_up {
bindings = <&kp C_VOLUME_UP>;
key-positions = <30 18>;
};

vol_down {
bindings = <&kp K_VOLUME_DOWN>;
key-positions = <29 17>;
};

br_up {
bindings = <&kp C_BRIGHTNESS_INC>;
key-positions = <31 19>;
};

br_down {
bindings = <&kp C_BRIGHTNESS_DEC>;
key-positions = <28 16>;
};
};

keymap {
compatible = "zmk,keymap";

Expand Down Expand Up @@ -50,10 +74,10 @@
// | ALT | | SPC | | ENT | | GUI |

bindings = <
&kp ESC &kp EXCL &kp AT &kp UP_ARROW &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp TILDE &kp LPAR &kp RPAR &kp BSPC
&kp TAB &bt BT_CLR &kp LEFT_ARROW &kp DOWN_ARROW &kp RIGHT_ARROW &kp ASTERISK &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
&kp LCTRL &bt BT_SEL 0 &bt BT_SEL 1 &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &kp HASH &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&kp LALT &trans &kp SPACE &kp RET &trans &kp RGUI
&kp ESC &kp EXCL &kp AT &kp UP_ARROW &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp BSPC
&kp TAB &bt BT_CLR &kp LEFT_ARROW &kp DOWN_ARROW &kp RIGHT_ARROW &kp AT_SIGN &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE
&kp LCTRL &bt BT_SEL 0 &bt BT_SEL 1 &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &kp HASH &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE
&kp LALT &trans &kp SPACE &kp RET &trans &kp RGUI
>;
};
};
Expand Down
56 changes: 0 additions & 56 deletions config/corne.keymap.old

This file was deleted.

0 comments on commit efff179

Please sign in to comment.