Skip to content

Commit

Permalink
test for macos compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DeBasti committed Jul 14, 2024
1 parent 97233c5 commit d4919e5
Showing 1 changed file with 42 additions and 5 deletions.
47 changes: 42 additions & 5 deletions boards/arm/zaphod/zaphod.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
#define AC(keycode) &ac LC(keycode) keycode

#define LTR 0
#define NAV 1
#define SYM 2
#define NUM 3
#define SON 4
#define TRI 5
#define MAC 1
#define MACSYM 2
#define NAV 3
#define SYM 4
#define NUM 5
#define SON 6
#define TRI 7

&mt {
// standard is hold preferred with tapping_term_ms = <200>;
Expand All @@ -37,6 +39,11 @@
key-positions = <0 1>; // Q + W
bindings = <&kp ESC>;
};
combo_mac {
timeout-ms = <50>;
key-positions = <3 4>; // H + ,
bindings = <&tog MAC>;
};
};

behaviors {
Expand Down Expand Up @@ -110,6 +117,10 @@
if-layers = <SYM NUM>;
then-layer = <TRI>;
};
mac_default {
if-layers = <MACSYM>;
then-layer = <MAC>;
};
};

keymap {
Expand All @@ -132,6 +143,32 @@
>;
};

mac_default {
bindings = <
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
//│ Q │ W │ F │ P │ B │ │ J │ L │ U │ Y │ ' │
&kp Q &kp W &kp F &kp P &kp Q &kp J &kp L &kp U &kp Z &kp LS(NON_US_HASH)
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
//│ A │ R │ S │ T │ G │ │ M │ N │ E │ I │ O │
HRML(A, R, S, T) &kp G &kp M &ht RSHIFT N &ht RCTRL E &lt SON I &ht RGUI O
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
//│ Z │ X │ C │ D │ V │ │ K │ H │ , < │ . > │ ? │
&kp Y &kp X AC(C) &kp D AC(V) &kp K &kp H &kp COMMA &kp DOT &kp LS(MINUS)
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
&lt NAV SPACE &lt NUM TAB &lt MACSYM ENTER &mt LSHIFT BACKSPACE
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
>;
};

mac_sym_layer {
bindings = <
&kp RA(E) &kp RA(N7) &kp RA(N0) &kp LS(N8) &kp LS(N9) &kp RA(N8) &kp RA(N9) &kp LS(RBKT) &kp RA(RBKT) &none
&kp GRAVE &kp RBKT &kp LS(N0) &kp SLASH &kp LS(N4) &kp LS(NON_US_HASH) &kp LS(N2) &kp LS(N7) &kp LS(DOT) &kp LS(NON_US_BACKSLASH)
&kp LS(COMMA) &kp LS(N5) &kp RA(NON_US_BACKSLASH) &kp LS(SLASH) &kp RA(Q) &kp LS(N1) &kp LS(EQUAL) &kp NON_US_HASH &kp LS(N6) &kp NON_US_BACKSLASH
&none &kp Q &kp ENTER &trans
>;
};

nav_layer {
bindings = <
&none &none &none &teamsMute &none &none &kp INS &kp DEL &kp PG_UP &none
Expand Down

0 comments on commit d4919e5

Please sign in to comment.