Skip to content

Commit 2116bbe

Browse files
committed
keymap copied from lily-promicro
1 parent 9b5b3a6 commit 2116bbe

File tree

4 files changed

+181
-42
lines changed

4 files changed

+181
-42
lines changed

config/lily58.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44

55
# Uncomment the following line to enable the Lily58 OLED Display
66
# CONFIG_ZMK_DISPLAY=y
7+
# CONFIG_ZMK_WIDGET_LAYER_STATUS=y
8+
# CONFIG_ZMK_WIDGET_BATTERY_STATUS=y
9+
# CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y
10+
# CONFIG_ZMK_WIDGET_OUTPUT_STATUS=y

config/lily58.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"id": "lily58",
3+
"name": "Lily58",
4+
"layouts": {
5+
"default_transform": {
6+
"name": "default_transform",
7+
"layout": [
8+
{ "row": 0, "col": 0, "x": 1, "y": 0.4 },
9+
{ "row": 0, "col": 1, "x": 2, "y": 0.33 },
10+
{ "row": 0, "col": 2, "x": 3, "y": 0.07 },
11+
{ "row": 0, "col": 3, "x": 4, "y": 0 },
12+
{ "row": 0, "col": 4, "x": 5, "y": 0.07 },
13+
{ "row": 0, "col": 5, "x": 6, "y": 0.2 },
14+
{ "row": 0, "col": 9, "x": 10, "y": 0.2 },
15+
{ "row": 0, "col": 10, "x": 11, "y": 0.07 },
16+
{ "row": 0, "col": 11, "x": 12, "y": 0 },
17+
{ "row": 0, "col": 12, "x": 13, "y": 0.07 },
18+
{ "row": 0, "col": 13, "x": 14, "y": 0.33 },
19+
{ "row": 0, "col": 14, "x": 15, "y": 0.4 },
20+
21+
{ "row": 1, "col": 0, "x": 1, "y": 1.4 },
22+
{ "row": 1, "col": 1, "x": 2, "y": 1.32 },
23+
{ "row": 1, "col": 2, "x": 3, "y": 1.07 },
24+
{ "row": 1, "col": 3, "x": 4, "y": 1 },
25+
{ "row": 1, "col": 4, "x": 5, "y": 1.08 },
26+
{ "row": 1, "col": 5, "x": 6, "y": 1.2 },
27+
{ "row": 1, "col": 9, "x": 10, "y": 1.2 },
28+
{ "row": 1, "col": 10, "x": 11, "y": 1.08 },
29+
{ "row": 1, "col": 11, "x": 12, "y": 1 },
30+
{ "row": 1, "col": 12, "x": 13, "y": 1.07 },
31+
{ "row": 1, "col": 13, "x": 14, "y": 1.32 },
32+
{ "row": 1, "col": 14, "x": 15, "y": 1.4 },
33+
34+
{ "row": 2, "col": 0, "x": 1, "y": 2.41 },
35+
{ "row": 2, "col": 1, "x": 2, "y": 2.33 },
36+
{ "row": 2, "col": 2, "x": 3, "y": 2.08 },
37+
{ "row": 2, "col": 3, "x": 4, "y": 2.01 },
38+
{ "row": 2, "col": 4, "x": 5, "y": 2.08 },
39+
{ "row": 2, "col": 5, "x": 6, "y": 2.2 },
40+
{ "row": 2, "col": 9, "x": 10, "y": 2.2 },
41+
{ "row": 2, "col": 10, "x": 11, "y": 2.08 },
42+
{ "row": 2, "col": 11, "x": 12, "y": 2.01 },
43+
{ "row": 2, "col": 12, "x": 13, "y": 2.08 },
44+
{ "row": 2, "col": 13, "x": 14, "y": 2.33 },
45+
{ "row": 2, "col": 14, "x": 15, "y": 2.41 },
46+
47+
{ "row": 3, "col": 0, "x": 1, "y": 3.41 },
48+
{ "row": 3, "col": 1, "x": 2, "y": 3.33 },
49+
{ "row": 3, "col": 2, "x": 3, "y": 3.08 },
50+
{ "row": 3, "col": 3, "x": 4, "y": 3.01 },
51+
{ "row": 3, "col": 4, "x": 5, "y": 3.08 },
52+
{ "row": 3, "col": 5, "x": 6, "y": 3.2 },
53+
{ "row": 3, "col": 6, "x": 7, "y": 2.7 },
54+
{ "row": 3, "col": 8, "x": 9, "y": 2.7 },
55+
{ "row": 3, "col": 9, "x": 10, "y": 3.2 },
56+
{ "row": 3, "col": 10, "x": 11, "y": 3.08 },
57+
{ "row": 3, "col": 11, "x": 12, "y": 3.01 },
58+
{ "row": 3, "col": 12, "x": 13, "y": 3.08 },
59+
{ "row": 3, "col": 13, "x": 14, "y": 3.33 },
60+
{ "row": 3, "col": 14, "x": 15, "y": 3.41 },
61+
62+
{ "row": 4, "col": 3, "x": 3.49, "y": 4.08 },
63+
{ "row": 4, "col": 4, "x": 4.49, "y": 4.08 },
64+
{ "row": 4, "col": 5, "x": 5.49, "y": 4.2 },
65+
{ "row": 4, "col": 6, "x": 6.49, "y": 3.7, "h": 1.5, "r": 30, "rx": 6.49, "ry": 5.2 },
66+
{ "row": 4, "col": 8, "x": 9.51, "y": 3.7, "h": 1.5, "r": -30, "rx": 10.51, "ry": 5.2 },
67+
{ "row": 4, "col": 9, "x": 10.51, "y": 4.2 },
68+
{ "row": 4, "col": 10, "x": 11.51, "y": 4.08 },
69+
{ "row": 4, "col": 11, "x": 12.51, "y": 4.08 }
70+
]
71+
}
72+
},
73+
"sensors": [
74+
{
75+
"ref": "left_encoder",
76+
"name": "encoder_left",
77+
"identifier": "encoder_left",
78+
"compatible": "alps,ec11",
79+
"label": "LEFT_ENCODER"
80+
}
81+
]
82+
}

config/lily58.keymap

Lines changed: 95 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,66 +5,121 @@
55
*/
66

77
#include <behaviors.dtsi>
8-
#include <dt-bindings/zmk/keys.h>
98
#include <dt-bindings/zmk/bt.h>
109
#include <dt-bindings/zmk/ext_power.h>
10+
#include <dt-bindings/zmk/keys.h>
1111

1212
/ {
13+
combos {
14+
compatible = "zmk,combos";
15+
16+
backspace {
17+
bindings = <&kp BACKSPACE>;
18+
key-positions = <31 32>;
19+
layers = <0 3 4>;
20+
slow-release;
21+
require-prior-idle-ms = <50>;
22+
};
23+
24+
delete {
25+
bindings = <&kp DELETE>;
26+
key-positions = <31 30>;
27+
layers = <0 3 4>;
28+
slow-release;
29+
require-prior-idle-ms = <50>;
30+
};
31+
32+
escape {
33+
bindings = <&kp ESCAPE>;
34+
key-positions = <28 29>;
35+
require-prior-idle-ms = <50>;
36+
slow-release;
37+
layers = <0 3 4>;
38+
};
39+
};
40+
1341
keymap {
1442
compatible = "zmk,keymap";
1543

16-
default_layer {
17-
// ------------------------------------------------------------------------------------------------------------
18-
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` |
19-
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | - |
20-
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
21-
// | SHIFT | Z | X | C | V | B | "[" | | "]" | N | M | , | . | / | SHIFT |
22-
// | ALT | GUI | LOWER| SPACE | | ENTER | RAISE| BSPC | GUI |
44+
mac {
45+
// ------------------------------------------------------------------------------------------------------------
46+
// | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` |
47+
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | - |
48+
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
49+
// | SHIFT | Z | X | C | V | B | "[" | | "]" | N | M | , | . | / | SHIFT |
50+
// | ALT | GUI | LOWER| SPACE | | ENTER | RAISE| BSPC | GUI |
51+
52+
bindings = <
53+
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp EQUAL
54+
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp MINUS
55+
&kp LEFT_CONTROL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
56+
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp BACKSPACE
57+
&kp LCTRL &kp LALT &kp LEFT_META &kp ENTER &kp SPACE &kp RIGHT_SHIFT &mo 2 &mo 1
58+
>;
59+
60+
label = "mac";
61+
};
62+
63+
fn2 {
64+
// ------------------------------------------------------------------------------------------------------------
65+
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
66+
// | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
67+
// | ` | ! | @ | # | $ | % | | ^ | & | * | ( | ) | ~ |
68+
// | | | | | | | | | | | _ | + | { | } | "|" |
69+
// | | | | | | | | | |
70+
71+
bindings = <
72+
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &to 0 &to 3 &to 4 &trans &trans &trans
73+
&ext_power EP_ON &trans &kp EXCLAMATION &kp AT &kp HASH &trans &trans &kp F1 &kp F2 &kp F3 &kp F4 &trans
74+
&ext_power EP_OFF &trans &kp DOLLAR &kp PERCENT &kp CARET &trans &trans &kp F5 &kp F6 &kp F7 &kp F8 &trans
75+
&ext_power EP_TOG &trans &kp AMPERSAND &kp ASTERISK &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &trans &trans &trans &kp F9 &kp F10 &kp F11 &kp F12 &trans
76+
&trans &trans &trans &trans &trans &trans &trans &trans
77+
>;
78+
79+
label = "fn2";
80+
};
81+
82+
fn1 {
83+
// ------------------------------------------------------------------------------------------------------------
84+
// | | | | | | | | | | | | | |
85+
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
86+
// | F1 | F2 | F3 | F4 | F5 | F6 | | | <- | v | ^ | -> | |
87+
// | F7 | F8 | F9 | F10 | F11 | F12 | | | | + | - | = | [ | ] | \ |
88+
// | | | | | | | | | |
89+
2390
bindings = <
24-
&kp ESC &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp GRAVE
25-
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp MINUS
26-
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
27-
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp LBKT &kp RBKT &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
28-
&kp LALT &kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp BSPC &kp RGUI
91+
&trans &kp C_BRIGHTNESS_DEC &kp C_BRIGHTNESS_INC &trans &trans &trans &trans &trans &kp C_MUTE &kp C_VOLUME_DOWN &kp C_VOLUME_UP &trans
92+
&trans &trans &kp NUMBER_1 &kp NUMBER_2 &kp NUMBER_3 &trans &trans &trans &trans &trans &trans &trans
93+
&trans &trans &kp NUMBER_4 &kp NUMBER_5 &kp NUMBER_6 &kp DOT &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
94+
&trans &trans &kp NUMBER_7 &kp NUMBER_8 &kp NUMBER_9 &kp NUMBER_0 &trans &trans &kp PIPE &kp BACKSLASH &kp PLUS &kp LEFT_BRACE &kp RIGHT_BRACE &kp BSLH
95+
&trans &trans &trans &trans &trans &trans &trans &trans
2996
>;
3097

31-
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
98+
label = "fn1";
3299
};
33100

34-
lower_layer {
35-
// ------------------------------------------------------------------------------------------------------------
36-
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
37-
// | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 |
38-
// | ` | ! | @ | # | $ | % | | ^ | & | * | ( | ) | ~ |
39-
// | | | | | | | | | | | _ | + | { | } | "|" |
40-
// | | | | | | | | | |
101+
win {
41102
bindings = <
42-
&bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &trans &trans &trans
43-
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
44-
&kp GRAVE &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp PRCNT &kp CARET &kp AMPS &kp ASTRK &kp LPAR &kp RPAR &kp TILDE
45-
&trans &ext_power EP_ON &ext_power EP_OFF &ext_power EP_TOG &trans &trans &trans &trans &trans &kp MINUS &kp PLUS &kp LBRC &kp RBRC &kp PIPE
46-
&trans &trans &trans &trans &trans &trans &trans &trans
103+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
104+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
105+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
106+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
107+
&kp LEFT_META &kp LEFT_ALT &kp LCTRL &trans &trans &trans &trans &trans
47108
>;
48109

49-
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
110+
label = "win";
50111
};
51112

52-
raise_layer {
53-
// ------------------------------------------------------------------------------------------------------------
54-
// | | | | | | | | | | | | | |
55-
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
56-
// | F1 | F2 | F3 | F4 | F5 | F6 | | | <- | v | ^ | -> | |
57-
// | F7 | F8 | F9 | F10 | F11 | F12 | | | | + | - | = | [ | ] | \ |
58-
// | | | | | | | | | |
113+
gpd {
59114
bindings = <
60-
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
61-
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans
62-
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
63-
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &trans &trans &kp KP_PLUS &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH
64-
&trans &trans &trans &trans &trans &trans &trans &trans
115+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
116+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
117+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
118+
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
119+
&kp LCTRL &kp LEFT_WIN &kp LEFT_ALT &trans &trans &trans &trans &trans
65120
>;
66121

67-
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
122+
label = "gpd";
68123
};
69124
};
70125
};

config/west.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ manifest:
22
remotes:
33
- name: zmkfirmware
44
url-base: https://github.com/zmkfirmware
5-
# Additional modules containing boards/shields/custom code can be listed here as well
6-
# See https://docs.zephyrproject.org/3.2.0/develop/west/manifest.html#projects
75
projects:
86
- name: zmk
97
remote: zmkfirmware

0 commit comments

Comments
 (0)