Skip to content

Commit 16eb8bd

Browse files
committed
macos keybind change petejohanson#1
1 parent 2718c8f commit 16eb8bd

File tree

2 files changed

+27
-14
lines changed

2 files changed

+27
-14
lines changed

boards/arm/zaphod/zaphod.dts

-4
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,9 @@
7676
kscan: kscan {
7777
compatible = "zmk,kscan-gpio-matrix";
7878
label = "KSCAN";
79-
<<<<<<< HEAD
8079
debounce-press-ms = <1>;
8180
debounce-release-ms = <5>;
8281

83-
=======
84-
debounce-period = <15>;
85-
>>>>>>> 5bcb5cb (nhongooi keymap test)
8682
diode-direction = "col2row";
8783

8884
col-gpios

boards/arm/zaphod/zaphod.keymap

+27-10
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
#include <dt-bindings/zmk/bt.h>
1010
#include <dt-bindings/zmk/outputs.h>
1111

12-
#define NAV_L 1
13-
#define OTH_L 2
14-
#define NUM_L 3
15-
#define SYM_L 4
16-
#define MED_L 5
17-
#define FUN_L 6
1812

1913
// Using layer taps on thumbs, having quick tap as well helps w/ repeating space/backspace
2014
&lt { quick_tap_ms = <160>; };
@@ -47,15 +41,38 @@
4741
flavor = "tap-preferred";
4842
bindings = <&kp>, <&kp>;
4943
};
44+
gresc: grave_escape {
45+
compatible = "zmk,behavior-mod-morph";
46+
label = "GRAVE_ESCAPE";
47+
#binding-cells = <0>;
48+
bindings = <&kp ESC>, <&kp GRAVE>;
49+
mods = <(MOD_LGUI|MOD_LSFT|MOD_RGUI|MOD_RSFT)>;
50+
};
51+
dbspc: del_backspace {
52+
compatible = "zmk,behavior-mod-morph";
53+
label = "DEL_BACKSPACE";
54+
#binding-cells = <0>;
55+
bindings = <&kp BSPC>, <&kp DEL>;
56+
mods = <(MOD_LSFT|MOD_RSFT)>;
57+
};
58+
};
59+
60+
conditional_layers {
61+
compatible = "zmk,conditional-layers";
62+
tri_layer {
63+
if-layers = <2 3>;
64+
then-layer = <4>;
65+
};
5066
};
67+
5168
keymap {
5269
compatible = "zmk,keymap";
5370
default_layer {
5471
bindings = <
5572
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
5673
&hm LGUI A &hm LSHFT S &hm LCTRL D &hm LALT F &kp G &kp H &hm RALT J &hm RCTRL K &hm RSHFT L &hm RGUI SEMI
5774
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
58-
&lt 3 TAB &lt 1 SPC &lt 2 RET &kp BSPC
75+
&lt 3 TAB &lt 1 SPC &lt 2 RET &dbspc
5976
>;
6077
};
6178
lower_layer {
@@ -71,13 +88,13 @@
7188
&kp ESC &kp F1 &kp F2 &kp F3 &kp F4 &kp PG_UP &kp HOME &trans &kp ESC &kp GRAVE
7289
&trans &kp F5 &kp F6 &kp F7 &kp F8 &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp COLON
7390
&trans &kp F9 &kp F10 &kp F11 &kp F12 &kp PG_DN &kp END &kp DEL &trans &kp QMARK
74-
&mo 4 &trans &trans &trans
91+
&trans &trans &trans &trans
7592
>;
7693
};
7794
con_layer {
7895
bindings = <
79-
&kp LC(LS(T)) &kp LC(LS(TAB)) &kp LC(W) &kp LC(TAB) &kp LC(LA(R)) &kp LBRC &kp AMPS &kp ASTRK &kp LPAR &kp RBRC
80-
&kp LC(Z) &kp LC(X) &kp LC(C) &kp LC(V) &kp LC(Y) &kp DQT &kp DLLR &kp PRCNT &kp CARET &kp PLUS
96+
&kp LC(LS(T)) &kp LG(LS(TAB)) &kp LG(W) &kp LC(TAB) &kp LG(LA(R)) &kp LBRC &kp AMPS &kp ASTRK &kp LPAR &kp RBRC
97+
&kp LG(Z) &kp LG(X) &kp LG(C) &kp LG(V) &kp LG(Y) &kp DQT &kp DLLR &kp PRCNT &kp CARET &kp PLUS
8198
&trans &kp LA(B) &kp LA(D) &kp LA(F) &kp LC(N1) &kp UNDER &kp EXCL &kp AT &kp HASH &kp PIPE
8299
&trans &trans &trans &kp RPAR
83100
>;

0 commit comments

Comments
 (0)