-
Notifications
You must be signed in to change notification settings - Fork 0
/
redox.keymap
100 lines (93 loc) · 8.23 KB
/
redox.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
/*
* Copyright (c) 2021 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>
#include <dt-bindings/zmk/outputs.h>
#define ADJUST 3
/ {
keymap {
compatible = "zmk,keymap" ;
// keymap profile 0: os:neo2 actual:neo2
// -------------------------------------------------------------------------------------------------------------------------------------
// | GRAVE | 1 | 2 | 3 | 4 | 5 | --- | 6 | 7 | 8 | 9 | 0 | - |
// | TAB | Q | W | E | R | T | ESC/ADJUST | --- | EQUAL | Y | U | I | O | P | [ |
// | CAPS | A | S | D | F | G | PSCRN | --- | ] | H | J | K | L | ; | ' |
// | SHIFT | Z | X | C | V | B | PG_UP | PG_DOWN | --- | HOME | END | N | M | , | . | / | ADJUST |
// | CRTL | GUI | ALT | RALT | SPACE | BKSP | DEL | --- | ESC | RET | SPACE | LEFT | DOWN | UP | RIGHT |
// -------------------------------------------------------------------------------------------------------------------------------------
default_layer {
bindings = <
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS
&kp TAB &kp Q &kp W &kp E &kp R &kp T < ADJUST ESC &kp EQUAL &kp Y &kp U &kp I &kp O &kp P &kp LBKT
&kp CLCK &kp A &kp S &kp D &kp F &kp G &kp PSCRN &kp RBKT &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp PG_UP &kp PG_DN &kp HOME &kp END &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mo ADJUST
&kp LCTRL &kp LGUI &kp LALT &kp RALT &kp SPACE &kp BSPC &kp DEL &kp ESC &kp RET &kp SPACE &kp LEFT &kp DOWN &kp UP &kp RIGHT
>;
};
// keymap profile 1: os:qwertz, actual:neo2
// -------------------------------------------------------------------------------------------------------------------------------------
// | GRAVE | 1 | 2 | 3 | 4 | 5 | --- | 6 | 7 | 8 | 9 | 0 | - |
// | TAB | X | V | L | C | W | ESC/ADJUST | --- | EQUAL | K | H | G | F | Q | [ |
// | CAPS | U | I | A | E | O | PSCRN | --- | ] | S | N | R | T | D | ' |
// | SHIFT | [ | ; | ' | P | Z | PG_UP | PG_DOWN | --- | HOME | END | B | M | , | . | J | ADJUST |
// | CRTL | GUI | ALT | RALT | SPACE | BKSP | DEL | --- | ESC | RET | SPACE | LEFT | DOWN | UP | RIGHT |
// -------------------------------------------------------------------------------------------------------------------------------------
neo_layer {
bindings = <
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS
&kp TAB &kp X &kp V &kp L &kp C &kp W < ADJUST ESC &kp EQUAL &kp K &kp H &kp G &kp F &kp Q &kp LBKT
&kp CLCK &kp U &kp I &kp A &kp E &kp O &kp PSCRN &kp RBKT &kp S &kp N &kp R &kp T &kp D &kp SQT
&kp LSHFT &kp LBKT &kp SEMI &kp SQT &kp P &kp Z &kp PG_UP &kp PG_DN &kp HOME &kp END &kp B &kp M &kp COMMA &kp DOT &kp J &mo ADJUST
&kp LCTRL &kp LGUI &kp LALT &kp RALT &kp SPACE &kp BSPC &kp DEL &kp ESC &kp RET &kp SPACE &kp LEFT &kp DOWN &kp UP &kp RIGHT
>;
};
// keymap profile 2: os:neo2, actual:qwertz
// -------------------------------------------------------------------------------------------------------------------------------------
// | GRAVE | 1 | 2 | 3 | 4 | 5 | --- | 6 | 7 | 8 | 9 | 0 | = |
// | TAB | P | T | F | K | L | ESC/ADJUST | --- | EQUAL | ' | A | S | G | V | Z |
// | CAPS | D | H | ; | O | I | PSCRN | --- | ] | U | / | Y | E | X | C |
// | SHIFT | B | Q | R | W | N | PG_UP | PG_DOWN | --- | HOME | END | J | M | , | . | - | ADJUST |
// | CRTL | GUI | ALT | RALT | SPACE | BKSP | DEL | --- | ESC | RET | SPACE | LEFT | DOWN | UP | RIGHT |
// -------------------------------------------------------------------------------------------------------------------------------------
qwertz_layer {
bindings = <
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp EQUAL
&kp TAB &kp P &kp T &kp F &kp K &kp L < ADJUST ESC &kp EQUAL &kp SQT &kp A &kp S &kp G &kp V &kp Z
&kp CLCK &kp D &kp H &kp SEMI &kp O &kp I &kp PSCRN &kp RBKT &kp U &kp FSLH &kp Y &kp E &kp X &kp C
&kp LSHFT &kp B &kp Q &kp R &kp W &kp N &kp PG_UP &kp PG_DN &kp HOME &kp END &kp J &kp M &kp COMMA &kp DOT &kp MINUS &mo ADJUST
&kp LCTRL &kp LGUI &kp LALT &kp RALT &kp SPACE &kp BSPC &kp DEL &kp ESC &kp RET &kp SPACE &kp LEFT &kp DOWN &kp UP &kp RIGHT
>;
};
// adjust layer, activated during press of ADJUST (or hold of ESC):
// numerical keys refer to F1-12,
// space,arrows: volume/media control
// both halves:
// - first row alphas: select bluetooth profiles 0-4, usb/bl output toggle
// - last row alphas: select keymap profiles 0-2
// special use cases:
// - pgup/pos1: reset board
// - pgdn/end: enter bootloader
// - TAB/]: clear current bluetooth profile
// ----------------------------------------------------------------------------------------------------------------------------------------------------
// | F11 | F1 | F2 | F3 | F4 | F5 | --- | F6 | F7 | F8 | F9 | F10 | F12 |
// | BT_CLR | BT0 | BT1 | BT2 | BT3 | BT4 | F11 | --- | F12 | BT0 | BT1 | BT2 | BT3 | BT4 | OUTPUT TGL |
// | | | | | | | OUTPUT TGL | --- | BT_CLR | | | | | | |
// | | L0 | L1 | L2 | | | RESET | BOOTL | --- | RESET | BOOTL | L0 | L1 | L2 | | | |
// | | | | | MUTE | | | --- | | | MUTE | PREV | VDN | VUP | NEXT |
// ----------------------------------------------------------------------------------------------------------------------------------------------------
adjust_layer {
bindings = <
&kp F11 &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F12
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &out OUT_TOG
&none &none &none &none &none &none &out OUT_TOG &bt BT_CLR &none &none &none &none &none &none
&none &to 0 &to 1 &to 2 &none &none &sys_reset &bootloader &sys_reset &bootloader &to 0 &to 1 &to 2 &none &none &none
&none &none &none &none &kp K_MUTE &none &none &none &none &kp K_MUTE &kp K_PREV &kp K_VOL_DN &kp K_VOL_UP &kp K_NEXT
>;
};
};
};