Skip to content

Commit

Permalink
Fixed combo declaration. Added backspace and mouse click
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlui committed May 1, 2024
1 parent 1226770 commit a9ddd82
Showing 1 changed file with 50 additions and 40 deletions.
90 changes: 50 additions & 40 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
@@ -1,66 +1,76 @@
// Copyright (c) 2022 The ZMK Contributors
// SPDX-License-Identifier: MIT
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/mouse.h>

#define SYM 1
#define MOV 2
#define EXT 3

#define COMBO(NAME, BINDINGS, KEYPOS) \
combo_##NAME { \
timeout-ms = <50>; \
bindings = <BINDINGS>; \
key-positions = <KEYPOS>; \
layers = <0>; \
};

/ {
combos {
compatible = "zmk,combos";
combo_at { \
timeout-ms = <50>; \
bindings = &kp LA(L); \
key-positions = 15 0; \
layers = <0>; \
type_at {
timeout-ms = <50>;
bindings = <&kp LA(L)>;
key-positions = <15 0>;
layers = <0>;
};

combo_ae { \
timeout-ms = <50>; \
bindings = &kp SINGLE_QUOTE; \
key-positions = 15 10; \
layers = <0>; \
type_ae {
timeout-ms = <50>;
bindings = <&kp SINGLE_QUOTE>;
key-positions = <15 10>;
layers = <0>;
};

combo_sz { \
timeout-ms = <50>; \
bindings = &kp MINUS; \
key-positions = 15 12; \
layers = <0>; \
type_sz {
timeout-ms = <50>;
bindings = &kp MINUS;
key-positions = <15 12>;
layers = <0>;
};

combo_ue { \
timeout-ms = <50>; \
bindings = &kp LEFT_BRACKET; \
key-positions = 14 7; \
layers = <0>; \
type_ue {
timeout-ms = <50>;
bindings = &kp LEFT_BRACKET;
key-positions = <14 7>;
layers = <0>;
};

combo_oe { \
timeout-ms = <50>; \
bindings = &kp SEMICOLON; \
key-positions = 14 19; \
layers = <0>; \
type_oe {
timeout-ms = <50>;
bindings = <&kp SEMICOLON>;
key-positions = <14 19>;
layers = <0>;
};

combo_eur { \
timeout-ms = <50>; \
bindings = &kp RA(E); \
key-positions = 14 17; \
layers = <0>; \
type_eur {
timeout-ms = <50>;
bindings = <&kp RA(E)>;
key-positions = <14 17>;
layers = <0>;
};

backspace {
bindings = <&kp BACKSPACE>;
key-positions = <7 6>;
layers = <0 1>;
};

delete_left_hand {
bindings = <&kp DELETE>;
key-positions = <2 3>;
};

mouse_click {
bindings = <&mkp LCLK>;
key-positions = <20 21>;
};



};

behaviors {
Expand Down

0 comments on commit a9ddd82

Please sign in to comment.