Skip to content

Commit 42ce18e

Browse files
ok fully set up the three finger combos and removed the goto vim layer bug
1 parent 06b07bc commit 42ce18e

File tree

7 files changed

+155
-55
lines changed

7 files changed

+155
-55
lines changed

config/behaviors.dtsi

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@
3939
mods = <(MOD_LSFT|MOD_RSFT)>;
4040
};
4141

42-
td_q_esc: tap_dance_q_esc {
43-
compatible = "zmk,behavior-tap-dance";
44-
#binding-cells = <0>;
45-
tapping-term-ms = <175>;
46-
bindings = <&kp Q>, <&kp ESC>;
47-
};
48-
4942
lt_1s_mo: layer_toggle_1s_momentary {
5043
compatible = "zmk,behavior-hold-tap";
5144
#binding-cells = <2>; // For Layer and Keycode

config/combos.dtsi

Lines changed: 50 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -81,41 +81,66 @@
8181
// and then escapes from those top layers back down to base ofc, no trapping.
8282
// =====================================================================================
8383
// THE UNIVERSAL ESCAPE HATCH
84-
// This takes you back to Base (0) from any other layer.
85-
combo_return_to_base { // qwe is what im thinking for this.
84+
combo_return_to_base {
8685
timeout-ms = <50>;
87-
key-positions = <0 1 2>; // Adjust to your preferred keys
86+
key-positions = <0 1 2>; // QWE
8887
bindings = <&to 0>;
89-
layers = <5 6 7 8 10>; // no need on lower/raise/adjust/func.
90-
// set for gaming, gaming2, roguelike, vim, mouse.
88+
layers = <0 5 6 7 8>; // active return to home on base gaming, gaming2, roguelike, vim
9189
};
92-
// go from gamingtwo to gaming
93-
combo_goto_gaming {
90+
91+
// BASE → GAMING (ASD)
92+
combo_base_to_gaming {
9493
timeout-ms = <50>;
95-
key-positions = <0 1 2>;
96-
bindings = <&to GAMING>;
97-
layers = <BASE>;
94+
key-positions = <0 1 2>; // ASD
95+
bindings = <&to 5>;
96+
layers = <0>;
9897
};
99-
// go from gaming to gamingtwo
100-
combo_goto_gamingtwo {
98+
99+
// BASE → VIM (NM,)
100+
combo_base_to_vim {
101101
timeout-ms = <50>;
102-
key-positions = <0 1 2>;
103-
bindings = <&to GAMING>;
104-
layers = <BASE>;
102+
key-positions = <0 1 2>; // NM,
103+
bindings = <&to 8>;
104+
layers = <0>;
105105
};
106-
// go from gaming to rogue
107-
combo_goto_rogue {
106+
107+
// VIM → BASE (NM,) - toggle back
108+
combo_vim_to_base {
108109
timeout-ms = <50>;
109-
key-positions = <0 1 2>;
110-
bindings = <&to GAMING>;
111-
layers = <BASE>;
110+
key-positions = <0 1 2>; // NM,
111+
bindings = <&to 0>;
112+
layers = <8>;
112113
};
113-
// go from base to vim. free home row keys, mods on top row, good for RL game testing/vim editing sometimes
114-
combo_goto_vim {
114+
// GAMING → ROGUELIKE (HJK)
115+
combo_gaming_to_roguelike {
115116
timeout-ms = <50>;
116-
key-positions = <0 1 2>;
117-
bindings = <&to GAMING>;
118-
layers = <BASE>;
117+
key-positions = <0 1 2>; // HJK
118+
bindings = <&to 7>;
119+
layers = <5>;
120+
};
121+
122+
// ROGUELIKE → GAMING (HJK) - toggle back
123+
combo_roguelike_to_gaming {
124+
timeout-ms = <50>;
125+
key-positions = <0 1 2>; // HJK
126+
bindings = <&to 5>;
127+
layers = <7>;
128+
};
129+
130+
// GAMING → GAMING2 (YUI)
131+
combo_gaming_to_gaming2 {
132+
timeout-ms = <50>;
133+
key-positions = <0 1 2>; // YUI
134+
bindings = <&to 6>;
135+
layers = <5>;
136+
};
137+
138+
// GAMING2 → GAMING (YUI) - toggle back
139+
combo_gaming2_to_gaming {
140+
timeout-ms = <50>;
141+
key-positions = <0 1 2>; // YUI
142+
bindings = <&to 5>;
143+
layers = <6>;
119144
};
120145
// =====================================================================================
121146
// top row one shot modifier combos

config/cradio.conf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Sweep (Cradio) ZMK Configuration
2-
32
# Power Management
43
CONFIG_ZMK_SLEEP=y
54
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
@@ -20,3 +19,7 @@ CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=8
2019
# nkro support, enable if we want, for now im leaving it uncommented to
2120
# see if it works in bios
2221
CONFIG_ZMK_HID_KEYBOARD_NKRO_EXTENDED_REPORT=y
22+
23+
# Mouse stuff
24+
CONFIG_ZMK_MOUSE=y
25+
CONFIG_ZMK_POINTING=y

config/cradio.keymap

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,40 @@
100100
combo_op_rgui {
101101
key-positions = <8 9>;
102102
};
103+
// =====================================================================================
104+
// Three-Finger goto layer combos
105+
// =====================================================================================
106+
combo_return_to_base { // QWE on all layers to return home
107+
key-positions = <0 1 2>;
108+
};
109+
110+
combo_base_to_gaming {
111+
key-positions = <10 11 12>; // ASD
112+
};
113+
114+
combo_base_to_vim {
115+
key-positions = <25 26 27>; // NM,
116+
};
117+
118+
combo_vim_to_base {
119+
key-positions = <25 26 27>; // NM, to return, qwe still works too.
120+
};
121+
122+
combo_gaming_to_roguelike {
123+
key-positions = <15 16 17>; // HJK
124+
};
125+
126+
combo_roguelike_to_gaming {
127+
key-positions = <15 16 17>; // HJK to go back (supposed to work even tho it will be numpad keys)
128+
};
129+
130+
combo_gaming_to_gaming2 {
131+
key-positions = <5 6 7>; // YUI
132+
};
133+
134+
combo_gaming2_to_gaming {
135+
key-positions = <5 6 7>; // YUI to return
136+
};
103137
};
104138

105139
keymap {
@@ -157,6 +191,16 @@
157191
___SWEEP_THUMBS_GAMING___
158192
>;
159193
};
194+
195+
gaming2_layer {
196+
bindings = <
197+
___GAMING2_L1___ ___GAMING2_R1___
198+
___GAMING2_L2___ ___GAMING2_R2___
199+
___GAMING2_L3___ ___GAMING2_R3___
200+
___SWEEP_THUMBS_GAMING2___
201+
>;
202+
};
203+
160204
roguelike_layer {
161205
bindings = <
162206
___ROGUELIKE_L1___ ___ROGUELIKE_R1___
@@ -166,15 +210,6 @@
166210
>;
167211
};
168212

169-
sys_layer {
170-
bindings = <
171-
___SYS_L1___ ___SYS_R1___
172-
___SYS_L2___ ___SYS_R2___
173-
___SYS_L3___ ___SYS_R3___
174-
___SWEEP_THUMBS_SYS___
175-
>;
176-
};
177-
178213
vim_layer {
179214
bindings = <
180215
___VIM_L1___ ___VIM_R1___
@@ -184,6 +219,15 @@
184219
>;
185220
};
186221

222+
sys_layer {
223+
bindings = <
224+
___SYS_L1___ ___SYS_R1___
225+
___SYS_L2___ ___SYS_R2___
226+
___SYS_L3___ ___SYS_R3___
227+
___SWEEP_THUMBS_SYS___
228+
>;
229+
};
230+
187231
mouse_layer {
188232
bindings = <
189233
___MOUSE_L1___ ___MOUSE_R1___

config/sofle.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,7 @@ CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=5
6363
# nkro support, enable if we want, for now im leaving it uncommented to
6464
# see if it works in bios
6565
CONFIG_ZMK_HID_KEYBOARD_NKRO_EXTENDED_REPORT=y
66+
67+
# Mouse stuff
68+
CONFIG_ZMK_MOUSE=y
69+
CONFIG_ZMK_POINTING=y

config/sofle.keymap

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,19 @@
179179
>;
180180
sensor-bindings = <___ENC_GAMING___>;
181181
};
182+
183+
gaming2 {
184+
display-name = "GAMING2";
185+
bindings = <
186+
___NUM_GAMING2_L_6___ ___NUM_GAMING2_R_6___
187+
___SOFLE_GAMING2_L1_6___ ___SOFLE_GAMING2_R1_6___
188+
___SOFLE_GAMING2_L2_6___ ___SOFLE_GAMING2_R2_6___
189+
___SOFLE_GAMING2_L3_6___ ___ENC_KEY_GAMING2___ ___SOFLE_GAMING2_R3_6___
190+
___SOFLE_THUMBS_L_GAMING2___ ___SOFLE_THUMBS_R_GAMING2___
191+
>;
192+
sensor-bindings = <___ENC_GAMING2___>;
193+
};
194+
182195
roguelike {
183196
display-name = "ROGUELIKE";
184197
bindings = <
@@ -191,18 +204,6 @@
191204
sensor-bindings = <___ENC_ROGUELIKE___>;
192205
};
193206

194-
sys {
195-
display-name = "SYS";
196-
bindings = <
197-
___NUM_SYS_L_6___ ___NUM_SYS_R_6___
198-
___SYS_L1_6___ ___SYS_R1_6___
199-
___SYS_L2_6___ ___SYS_R2_6___
200-
___SYS_L3_6___ ___ENC_KEY_SYS___ ___SYS_R3_6___
201-
___SOFLE_THUMBS_L_SYS___ ___SOFLE_THUMBS_R_SYS___
202-
>;
203-
sensor-bindings = <___ENC_SYS___>;
204-
};
205-
206207
vim {
207208
display-name = "VIM";
208209
bindings = <
@@ -215,6 +216,18 @@
215216
sensor-bindings = <___ENC_VIM___>;
216217
};
217218

219+
sys {
220+
display-name = "SYS";
221+
bindings = <
222+
___NUM_SYS_L_6___ ___NUM_SYS_R_6___
223+
___SYS_L1_6___ ___SYS_R1_6___
224+
___SYS_L2_6___ ___SYS_R2_6___
225+
___SYS_L3_6___ ___ENC_KEY_SYS___ ___SYS_R3_6___
226+
___SOFLE_THUMBS_L_SYS___ ___SOFLE_THUMBS_R_SYS___
227+
>;
228+
sensor-bindings = <___ENC_SYS___>;
229+
};
230+
218231
mouse {
219232
display-name = "MOUSE";
220233
bindings = <

config/wrappers.dtsi

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* C preprocessor macros are expanded in multiple passes. This lets us do:
2020
*
2121
* LAYOUT_mitosis_wrapper(
22-
* ___BASE_L1___, ___BASE_R1___, // Expands to: TD(TD_Q_ESC), KC_W, ...
22+
* ___BASE_L1___, ___BASE_R1___, // Expands to: KC_Q), KC_W, ...
2323
* ...
2424
* )
2525
*
@@ -170,6 +170,21 @@
170170
#define ___GAMING_R2___ &kp H &kp J &kp K &kp L &kp SEMI
171171
#define ___GAMING_R3___ &kp N &kp M &kp COMMA &kp DOT &kp FSLH
172172

173+
/* --------------------------------------------------------------------------
174+
* GAMING2 LAYER - F-keys and Numbers (for boards without numrow like Cradio)
175+
* --------------------------------------------------------------------------
176+
* 1 2 3 4 5 6 7 8 9 0
177+
* F1 F2 F3 F4 F5 F6 F7 F8 F9 F10
178+
* F11 F12 _ _ PrtSc _ _ _ _ _
179+
*/
180+
#define ___GAMING2_L1___ &kp N1 &kp N2 &kp N3 &kp N4 &kp N5
181+
#define ___GAMING2_L2___ &kp F1 &kp F2 &kp F3 &kp F4 &kp F5
182+
#define ___GAMING2_L3___ &kp F11 &kp F12 _______ _______ &kp PSCRN
183+
184+
#define ___GAMING2_R1___ &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
185+
#define ___GAMING2_R2___ &kp F6 &kp F7 &kp F8 &kp F9 &kp F10
186+
#define ___GAMING2_R3___ _______ _______ _______ _______ _______
187+
173188
/* --------------------------------------------------------------------------
174189
* ROGUELIKE LAYER - Extension of Gaming layer - Numpad on right, escape codes back to
175190
gaming 1 possibly gaming 2?
@@ -277,6 +292,9 @@
277292
#define ___NUM_GAMING_L___ &trans &trans &trans &trans &trans
278293
#define ___NUM_GAMING_R___ &trans &trans &trans &trans &trans
279294

295+
#define ___NUM_GAMING2_L___ _______ _______ _______ _______ _______
296+
#define ___NUM_GAMING2_R___ _______ _______ _______ _______ _______
297+
280298
#define ___NUM_ROGUELIKE_L___ _______ _______ _______ _______ _______
281299
#define ___NUM_ROGUELIKE_R___ _______ _______ _______ _______ _______
282300

0 commit comments

Comments
 (0)