forked from mmccoyd/zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhillside48.keymap
162 lines (143 loc) · 11.1 KB
/
hillside48.keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/
#include <behaviors.dtsi>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/ext_power.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
#define QWERTY_L 0
#define SYM_L 1
#define NUM_L 2
#define ADJ_L 3
#define MOD_L 4
#define Undo LC(Z)
#define Cut LC(X)
#define Copy LC(C)
#define Paste LC(V)
#define R_SCRNSHT RS(RG(RC(N4)))
#define VSCQF LG(DOT) //MacOS shortcut for "quick fix" in vscode
#define OSXDOC RA(RG(D)) //Show dock in OSX
/ {
behaviors {
bht: balanced_hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "HOLD_TAP";
#binding-cells = <2>;
tapping-term-ms = <200>; // <---[[moderate duration]]
quick-tap-ms = <0>;
flavor = "balanced";
bindings = <&kp>, <&kp>;
};
lh_pht: left_hand_positional_hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "LEFT_POSITIONAL_HOLD_TAP";
#binding-cells = <2>;
flavor = "tap-unless-interrupted";
tapping-term-ms = <100>; // <---[[produces tap if held longer than tapping-term-ms]]
quick-tap-ms = <200>;
bindings = <&kp>, <&kp>;
hold-trigger-key-positions = <5 6 7 8 9 10>; // <---[[right-hand keys]]
};
nht: number_hold_tap {
compatible = "zmk,behavior-hold-tap";
label = "NUM_HOLD_TAP";
#binding-cells = <2>;
tapping-term-ms = <275>; // <---[[slightly higher than moderate duration]]
quick-tap-ms = <0>;
flavor = "balanced";
bindings = <&kp>, <&kp>;
};
prog_caps: behavior_prog_caps_word {
compatible = "zmk,behavior-caps-word";
label = "PROG_CAPS";
#binding-cells = <0>;
continue-list = <UNDERSCORE MINUS BACKSPACE>; // Defines that capsword continues after underscore dash and backspace
};
};
keymap {
compatible = "zmk,keymap";
default_layer {
/* QWERTY
* -------------------------------------------------------------------------------------------------------------------------------------
* | ` | Q | W | E | R | T |-----------------------------------| Y | U | I | O | P | BKSPC |
* | TAB | A | S | D | F | G |-----------------------------------| H | J | K | L | ; | ENTER |
* | SHIFT | Z | X | C | V | B | CAPS |-------------------| ESC | N | M | , | . | / | SHIFT |
* ----------------| CTRL |-------| GUI | ALT | SPACE | Sym |---| Num | SPACE | ALT | GUI |-------| ' |----------------
*/
bindings = <
&kp GRAVE &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &prog_caps &kp ESC &kp N &kp M &kp COMMA &kp DOT &kp SLASH &mt RSHFT ENTER
&none &kp LALT &kp LGUI < 1 SPACE < 4 TAB < 4 BACKSPACE < 2 SPACE &mt RSHFT ENTER &kp VSCQF &kp RCTL
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
sym_layer {
/* SYM
* -------------------------------------------------------------------------------------------------------------------------------------
* | HOME | ! | @ | # | $ | % |-----------------------------------| ^ | & | * | ( | ) | BSPC |
* | END | GUI | Alt | Ctrl | Shift | Pg Up |-----------------------------------| - | = | [ | ] | \ | ENTER |
* | Shift | UnDo | Cut | Copy | Paste | Pg Dn |OsAltGr|-------------------| MENU | _ | + | { | } | | | SHIFT |
* ----------------| |-------| | | | |---| ADJ_L | | | |-------| CTRL |----------------
*/
bindings = <
&kp HOME &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp PERCENT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &trans
&kp END &kp LGUI &kp LALT &kp LCTRL &kp LSHFT &kp PG_UP &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp DEL &trans
&trans &kp Undo &kp Cut &kp Copy &kp Paste &kp PG_DN &sk RALT &kp K_APP &none &kp RSHFT &kp RCTRL &kp LALT &kp RGUI &trans
&trans &trans &trans &trans &trans &mo ADJ_L &mo ADJ_L &trans &trans &kp RCTRL
>;
sensor-bindings = <&inc_dec_kp PG_UP PG_DN &inc_dec_kp C_VOL_UP C_VOL_DN>;
};
num_layer {
/* NUM
* -------------------------------------------------------------------------------------------------------------------------------------
* | F11 | 1 | 2 | 3 | 4 | 5 |-----------------------------------| 6 | 7 | 8 | 9 | | BSPC |
* | F12 | F1 | F2 | F3 | F4 | F5 |-----------------------------------|VOL UP | Shift | Ctrl | Alt | Gui | ENTER |
* | Shift | F6 | F7 | F8 | F9 | F10 | INS |-------------------| MUTE |VOL DN | Left | Up | Down | Right | DELETE|
* ----------------| |-------| | | | ADJ_L |---| | | | |-------| CTRL |----------------
*/
bindings = <
&kp F11 &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &none &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp R_SCRNSHT &kp OSXDOC &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &none
&trans &trans &trans &mo ADJ_L &mo ADJ_L &trans &trans &trans &trans &kp RCTRL
>;
sensor-bindings = <&inc_dec_kp PG_UP PG_DN &inc_dec_kp C_VOL_UP C_VOL_DN>;
};
adj_layer {
/* ADJUST
* -------------------------------------------------------------------------------------------------------------------------------------
* | | QWERTY| DVORAK| COLEMK| | |-----------------------------------| |Prt Scr| | EP_OFF| EP_ON | |
* | | BT 0 | BT 1 | BT 2 | BT 3 | BT 4 |-----------------------------------| | | | | | |
* | BOOTL | RESET | |OUT_USB|OUT_BLE| |BT CLR |-------------------| | | | | | | SHIFT |
* ----------------| |-------| | | | |---| | | | |-------| CTRL |----------------
*/
bindings = <
&none &to QWERTY_L &none &none &none &none &none &kp PRINTSCREEN &none &ext_power EP_OFF &ext_power EP_ON &none
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &none &none &none &none
&bootloader &sys_reset &none &out OUT_USB &out OUT_BLE &none &bt BT_CLR &none &none &none &none &none &none &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp RCTRL
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
mods_layer {
/* MODS
* -------------------------------------------------------------------------------------------------------------------------------------
* | | QWERTY| DVORAK| COLEMK| | |-----------------------------------| |Prt Scr| | EP_OFF| EP_ON | |
* | | BT 0 | BT 1 | BT 2 | BT 3 | BT 4 |-----------------------------------| | | | | | |
* | BOOTL | RESET | |OUT_USB|OUT_BLE| |BT CLR |-------------------| | | | | | | SHIFT |
* ----------------| |-------| | | | |---| | | | |-------| CTRL |----------------
*/
bindings = <
&none &trans &trans &trans &none &none &none &kp PRINTSCREEN &none &ext_power EP_OFF &ext_power EP_ON &none
&none &sk LSHFT &sk LCTL &sk LALT &sk LGUI &none &none &sk RGUI &sk RALT &sk RCTRL &sk RSHFT &none
&bootloader &reset &none &out OUT_USB &out OUT_BLE &none &trans &none &none &none &none &none &none &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp RCTRL
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
};
};