forked from aroum/zmk-enki42-dongle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
86 additions
and
90 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
/* | ||
* 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> | ||
|
||
#include <dt-bindings/zmk/ext_power.h> | ||
|
||
#define DEF 0 | ||
#define LWR 1 | ||
#define RSE 2 | ||
#define ADJ 3 | ||
|
||
< { quick_tap_ms = <220>; }; | ||
&mt { quick_tap_ms = <220>; }; | ||
|
||
/ { | ||
macros { | ||
numdot: numdot { | ||
label = "ZM_numdot"; | ||
compatible = "zmk,behavior-macro"; | ||
#binding-cells = <0>; | ||
wait-ms = <40>; | ||
tap-ms = <40>; | ||
bindings | ||
= <¯o_press &kp LALT> | ||
, <¯o_tap &kp KP_N4 &kp KP_N6> | ||
, <¯o_release &kp LALT> | ||
; | ||
}; | ||
grtsgn: grtsgn { | ||
label = "ZM_grtsgn"; | ||
compatible = "zmk,behavior-macro"; | ||
#binding-cells = <0>; | ||
wait-ms = <40>; | ||
tap-ms = <40>; | ||
bindings | ||
= <¯o_press &kp LALT> | ||
, <¯o_tap &kp KP_N6 &kp KP_N2> | ||
, <¯o_release &kp LALT> | ||
; | ||
}; | ||
}; | ||
}; | ||
/ { | ||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
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 FSLH | ||
< RSE TAB &mt LSHFT SPACE < LWR RET < LWR ESC &mt RSHFT BSPC < RSE DEL | ||
>; | ||
}; | ||
lower_layer { | ||
bindings = < | ||
&kp KP_MULTIPLY &kp N7 &kp N8 &kp N9 &kp PLUS &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT | ||
&kp KP_SLASH &kp N4 &kp N5 &kp N6 &kp MINUS &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR | ||
&kp N0 &kp N1 &kp N2 &kp N3 &numdot &kp LG(SPACE) &kp F4 &kp F5 &kp F6 &kp F7 | ||
< ADJ TAB &trans &trans &trans &trans < ADJ DEL | ||
>; | ||
}; | ||
raise_layer { | ||
bindings = < | ||
&kp C_VOL_UP &kp PG_UP &kp C_PP &kp HOME &kp C_PAUSE &kp N0 &kp HOME &kp C_PP &kp PG_UP &kp C_VOL_UP | ||
&kp C_VOL_DN &kp LEFT &kp UP &kp DOWN &kp RIGHT &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp C_VOL_DN | ||
&kp C_MUTE &kp PG_DN &kp LG(LS(S)) &kp END &kp C_PLAY &kp N0 &kp END &grtsgn &kp PG_DN &kp C_MUTE | ||
&trans &trans < ADJ RET < ADJ ESC &trans &trans | ||
>; | ||
}; | ||
adjust_layer { | ||
bindings = < | ||
&none &none &none &none &none &none &none &none &none &none | ||
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 4 &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 | ||
&kp KP_NUM &none &none &none &none &none &none &none &none &none | ||
&trans &none &trans &trans &none &trans | ||
>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters