Skip to content

Commit

Permalink
Add bluetooth commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Machione committed Nov 20, 2023
1 parent dbebb48 commit 012a9a6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
22 changes: 18 additions & 4 deletions config/boards/shields/cornetto/cornetto.keymap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/mouse.h>

/ {
Expand All @@ -18,10 +19,10 @@

default_layer {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH
&mt LEFT_GUI ESC &lt 1 BACKSPACE &mt LEFT_CONTROL TAB &none &none &lt 2 RETURN &mt LEFT_SHIFT SPACE &mt LEFT_ALT DELETE
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH
&mt LEFT_GUI ESC &lt 1 BACKSPACE &mt LEFT_CONTROL TAB &lt 3 LC(LS(M)) &lt 3 LA(TAB) &lt 2 RETURN &mt LEFT_SHIFT SPACE &mt LEFT_ALT DELETE
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &rot_mwh SCROLL_UP SCROLL_DOWN>;
Expand Down Expand Up @@ -50,5 +51,18 @@

label = "symbols";
};

admin {
bindings = <
&bt BT_CLR &none &none &none &none &none &none &none &none &none
&none &none &bt BT_PRV &BT_NXT &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
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &rot_mwh SCROLL_RIGHT SCROLL_LEFT>;

label = "admin";
};
};
};
22 changes: 18 additions & 4 deletions config/cornetto.keymap
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/mouse.h>

&lt {
Expand All @@ -25,10 +26,10 @@

workman {
bindings = <
&kp Q &kp D &kp R &kp W &kp B &kp J &kp F &kp U &kp P &kp SEMICOLON
&kp A &kp S &kp H &kp T &kp G &kp Y &kp N &kp E &kp O &kp I
&kp Z &kp X &kp M &kp C &kp V &kp K &kp L &kp COMMA &kp DOT &kp SLASH
&mt LEFT_GUI ESC &lt 1 BACKSPACE &mt LEFT_CONTROL TAB &none &none &lt 2 RETURN &mt LEFT_SHIFT SPACE &mt LEFT_ALT DELETE
&kp Q &kp D &kp R &kp W &kp B &kp J &kp F &kp U &kp P &kp SEMICOLON
&kp A &kp S &kp H &kp T &kp G &kp Y &kp N &kp E &kp O &kp I
&kp Z &kp X &kp M &kp C &kp V &kp K &kp L &kp COMMA &kp DOT &kp SLASH
&mt LEFT_GUI ESC &lt 1 BACKSPACE &mt LEFT_CONTROL TAB &lt 3 LC(LS(M)) &lt 3 LA(TAB) &lt 2 RETURN &mt LEFT_SHIFT SPACE &mt LEFT_ALT DELETE
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &rot_mwh SCROLL_UP SCROLL_DOWN>;
Expand Down Expand Up @@ -57,5 +58,18 @@

label = "symbols";
};

admin {
bindings = <
&bt BT_CLR &none &none &none &none &none &none &none &none &none
&none &none &bt BT_PRV &BT_NXT &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
>;

sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &rot_mwh SCROLL_RIGHT SCROLL_LEFT>;

label = "admin";
};
};
};

0 comments on commit 012a9a6

Please sign in to comment.