Skip to content

Commit

Permalink
macos keybind change petejohanson#1
Browse files Browse the repository at this point in the history
  • Loading branch information
nhongooi committed Mar 13, 2024
1 parent c7fe9a4 commit b3f3f56
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 72 deletions.
4 changes: 0 additions & 4 deletions boards/arm/zaphod/zaphod.dts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,9 @@
kscan: kscan {
compatible = "zmk,kscan-gpio-matrix";
label = "KSCAN";
<<<<<<< HEAD
debounce-press-ms = <1>;
debounce-release-ms = <5>;

=======
debounce-period = <15>;
>>>>>>> 5bcb5cb (nhongooi keymap test)
diode-direction = "col2row";

col-gpios
Expand Down
136 changes: 68 additions & 68 deletions boards/arm/zaphod/zaphod.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,86 +9,86 @@
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>

#define NAV_L 1
#define OTH_L 2
#define NUM_L 3
#define SYM_L 4
#define MED_L 5
#define FUN_L 6

// Using layer taps on thumbs, having quick tap as well helps w/ repeating space/backspace
&lt { quick_tap_ms = <160>; };

/ {
combos {
compatible = "zmk,combos";

med_mo {
timeout-ms = <50>;
key-positions = <30 31>;
bindings = <&mo MED_L>;
behaviors {
hm: homerow_mods {
compatible = "zmk,behavior-hold-tap";
label = "HOMEROW_MODS";
#binding-cells = <2>;
tapping-term-ms = <230>;
quick_tap_ms = <0>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};

fn_mo {
timeout-ms = <50>;
key-positions = <32 33>;
bindings = <&mo FUN_L>;
gresc: grave_escape {
compatible = "zmk,behavior-mod-morph";
label = "GRAVE_ESCAPE";
#binding-cells = <0>;
bindings = <&kp ESC>, <&kp GRAVE>;
mods = <(MOD_LGUI|MOD_LSFT|MOD_RGUI|MOD_RSFT)>;
};
dbspc: del_backspace {
compatible = "zmk,behavior-mod-morph";
label = "DEL_BACKSPACE";
#binding-cells = <0>;
bindings = <&kp BSPC>, <&kp DEL>;
mods = <(MOD_LSFT|MOD_RSFT)>;
};

};

behaviors {
hm: homerow_mods {
compatible = "zmk,behavior-hold-tap";
label = "HOMEROW_MODS";
#binding-cells = <2>;
tapping-term-ms = <200>;
quick_tap_ms = <0>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
conditional_layers {
compatible = "zmk,conditional-layers";
tri_layer {
if-layers = <2 3>;
then-layer = <4>;
};
};

keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&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
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
&lt 3 TAB &lt 1 SPC &lt 2 RET &kp BSPC
>;
};
lower_layer {
bindings = <
&kp LG(SPC) &kp LC(LEFT) &trans &kp LC(RIGHT) &trans &kp LBKT &kp N7 &kp N8 &kp N9 &kp RBKT
&kp LG(LS(SPC)) &kp LG(J) &kp LG(K) &kp LG(L) &kp LG(SEMI) &kp SQT &kp N4 &kp N5 &kp N6 &kp EQUAL
&kp LG(LS(Q)) &kp LG(N1) &kp LG(N2) &kp LG(N3) &kp LG(N4) &kp MINUS &kp N1 &kp N2 &kp N3 &kp BSLH
&trans &trans &kp DOT &kp N0
>;
};
raise_layer {
bindings = <
&kp ESC &kp F1 &kp F2 &kp F3 &kp F4 &kp PG_UP &kp HOME &trans &kp ESC &kp GRAVE
&trans &kp F5 &kp F6 &kp F7 &kp F8 &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp COLON
&trans &kp F9 &kp F10 &kp F11 &kp F12 &kp PG_DN &kp END &kp DEL &trans &kp QMARK
&mo 4 &trans &trans &trans
>;
};
con_layer {
bindings = <
&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
&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
&trans &kp LA(B) &kp LA(D) &kp LA(F) &kp LC(N1) &kp UNDER &kp EXCL &kp AT &kp HASH &kp PIPE
&trans &trans &trans &kp RPAR
>;
compatible = "zmk,keymap";
default_layer {
bindings = <
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
&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
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
&lt 3 TAB &lt 1 SPC &lt 2 RET &dbspc
>;
};
lower_layer {
bindings = <
&kp LG(SPC) &kp LC(LEFT) &trans &kp LC(RIGHT) &trans &kp LBKT &kp N7 &kp N8 &kp N9 &kp RBKT
&kp LG(LS(SPC)) &kp LG(J) &kp LG(K) &kp LG(L) &kp LG(SEMI) &kp SQT &kp N4 &kp N5 &kp N6 &kp EQUAL
&kp LG(LS(Q)) &kp LG(N1) &kp LG(N2) &kp LG(N3) &kp LG(N4) &kp MINUS &kp N1 &kp N2 &kp N3 &kp BSLH
&trans &trans &kp DOT &kp N0
>;
};
raise_layer {
bindings = <
&kp ESC &kp F1 &kp F2 &kp F3 &kp F4 &kp PG_UP &kp HOME &trans &kp ESC &kp GRAVE
&trans &kp F5 &kp F6 &kp F7 &kp F8 &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp COLON
&trans &kp F9 &kp F10 &kp F11 &kp F12 &kp PG_DN &kp END &kp DEL &trans &kp QMARK
&trans &trans &trans &trans
>;
};
con_layer {
bindings = <
&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
&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
&trans &kp LA(B) &kp LA(D) &kp LA(F) &kp LC(N1) &kp UNDER &kp EXCL &kp AT &kp HASH &kp PIPE
&trans &trans &trans &kp RPAR
>;
};
adj_layer {
bindings = <
&bt BT_CLR &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &tog 5 &tog 6 &trans &reset &bootloader
&bt BT_NXT &trans &trans &trans &trans &trans &trans &trans &trans &out OUT_TOG
&bt BT_PRV &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans
>;
adj_layer {
bindings = <
&bt BT_CLR &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &tog 5 &tog 6 &trans &sys_reset &bootloader
&bt BT_NXT &trans &trans &trans &trans &trans &trans &trans &trans &trans
&bt BT_PRV &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans
>;
};
};
};

0 comments on commit b3f3f56

Please sign in to comment.