forked from mmccoyd/zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hillside48.keymap
137 lines (121 loc) · 11.2 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
/*
* 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 DVORAK_L 1
#define COLEMK_L 2
#define SYM_L 3
#define NUM_L 4
#define ADJ_L 5
#define Undo LC(Z)
#define Cut LC(X)
#define Copy LC(C)
#define Paste LC(V)
/ {
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 ENTER
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp CAPS &kp ESC &kp N &kp M &kp COMMA &kp DOT &kp SLASH &kp RSHFT
&kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo SYM_L &mo NUM_L &kp SPACE &kp LALT &kp RGUI &kp SQT
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
dvorak_layer {
/* DVORAK
* -------------------------------------------------------------------------------------------------------------------------------------
* | ` | ' | , | . | P | Y |-----------------------------------| F | G | C | R | L | BKSPC |
* | TAB | A | O | E | U | I |-----------------------------------| D | H | T | N | S | ENTER |
* | SHIFT | ; | Q | J | K | X | CAPS |-------------------| ESC | B | M | W | V | Z | SHIFT |
* ----------------| CTRL |-------| GUI | ALT | SPACE | Sym |---| Num | SPACE | ALT | GUI |-------| / |----------------
*/
bindings = <
&kp GRAVE &kp SQT &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &kp BSPC
&kp TAB &kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S &kp ENTER
&kp LSHFT &kp SEMI &kp Q &kp J &kp K &kp X &kp CAPS &kp ESC &kp B &kp M &kp W &kp V &kp Z &kp RSHFT
&kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo SYM_L &mo NUM_L &kp SPACE &kp LALT &kp RGUI &kp SLASH
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp PG_UP PG_DN>;
};
colemak_layer {
/* COLEMAK-DH
* -------------------------------------------------------------------------------------------------------------------------------------
* | ` | Q | W | F | P | B |-----------------------------------| J | L | U | Y | ; | BKSPC |
* | TAB | A | R | S | T | G |-----------------------------------| M | N | E | I | O | ENTER |
* | SHIFT | Z | X | C | D | V | CAPS |-------------------| ESC | K | H | , | . | / | SHIFT |
* ----------------| CTRL |-------| GUI | ALT | SPACE | Sym |---| Num | SPACE | ALT | GUI |-------| ' |----------------
*/
bindings = <
&kp GRAVE &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &kp U &kp Y &kp SEMI &kp BSPC
&kp TAB &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O &kp ENTER
&kp LSHFT &kp Z &kp X &kp C &kp D &kp V &kp CAPS &kp ESC &kp K &kp H &kp COMMA &kp DOT &kp SLASH &kp RSHFT
&kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo SYM_L &mo NUM_L &kp SPACE &kp LALT &kp RGUI &kp SQT
>;
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 MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &trans
&trans &kp Undo &kp Cut &kp Copy &kp Paste &kp PG_DN &sk RALT &kp K_APP &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &trans
&trans &trans &trans &trans &trans &mo ADJ_L &trans &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 F12 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp C_VOL_UP &kp RSHFT &kp RCTRL &kp LALT &kp RGUI &trans
&trans &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp INS &kp C_MUTE &kp C_VOL_DN &kp LEFT &kp UP &kp DOWN &kp RIGHT &kp DEL
&trans &trans &trans &trans &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 &to DVORAK_L &to COLEMK_L &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 &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>;
};
};
};