Skip to content

Commit

Permalink
rename define keys on each os to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
equiman committed Dec 16, 2023
1 parent a1bb2c0 commit 11229ca
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
22 changes: 11 additions & 11 deletions config/os/android/keymap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
AKY_ESC &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &mp_ai_u &mp_ai_y &mp_k_m NAV_DEL
&mp_bc AB13 AB14 AB15 AB16 &kp G &kp M AB19 AB20 AB21 AB22 NAV_BSPC
AKY_TAB &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &mp_cs &mp_dc &mp_ak_q AB35
AB36 KEY_SPC AB38 AB39 AKY_RET AB41
AB36 AKY_SPC AB38 AB39 AKY_RET AB41
>;
};

Expand All @@ -44,7 +44,7 @@
AKY_ESC &kp AT &kp POUND &kp DLLR &kp PLUS &m_ai_d &m_ai_t &kp MINUS &kp UNDER &kp PRCNT &m_ai_c NAV_DEL
&mp_bc AD13 AD14 AD15 AD16 &m_ai_s &m_ai_g AD19 AD20 AD21 AD22 NAV_BSPC
AKY_TAB &kp LC(R) &kp LPAR &kp RPAR &kp ASTRK &kp BSLH &mp_aDEV_s &kp QMARK &kp LT &kp GT &mp_aDEV_ql &none
&mp_cs KEY_SPC AD38 AD39 AKY_RET &mp_dc
&mp_cs AKY_SPC AD38 AD39 AKY_RET &mp_dc
>;
};

Expand All @@ -67,18 +67,18 @@
#define AA38 &to_aBAS
#define AA39 &mo_aFNKaAXN_to_aFNK 0 0

#define KEY_UNDO &kp LC(Z) // tap: undo
#define KEY_REDO &kp LC(LS(Z)) // tap: redo
#define KEY_CUT &kp LC(X) // tap: cut
#define KEY_COPY &kp LC(C) // tap: copy
#define KEY_PASTE &kp LC(V) // tap: paste
#define AKY_UNDO &kp LC(Z) // tap: undo
#define AKY_REDO &kp LC(LS(Z)) // tap: redo
#define AKY_CUT &kp LC(X) // tap: cut
#define AKY_COPY &kp LC(C) // tap: copy
#define AKY_PASTE &kp LC(V) // tap: paste

label = "aAXN";
bindings = <
AKY_ESC AA01 AA02 &kp UP AA04 AA05 &kp KP_PLUS &kp N7 &kp N8 &kp N9 &kp KP_MULTIPLY NAV_DEL
&mp_bc AA13 AA14 AA15 AA16 AA17 &kp N0 AA19 AA20 AA21 AA22 NAV_BSPC
AKY_TAB KEY_UNDO KEY_CUT KEY_COPY KEY_PASTE KEY_REDO &mp_k_m &kp N1 &kp N2 &kp N3 &kp KP_DIVIDE &none
&mp_cs KEY_SPC AA38 AA39 AKY_RET &mp_dc
AKY_TAB AKY_UNDO AKY_CUT AKY_COPY AKY_PASTE AKY_REDO &mp_k_m &kp N1 &kp N2 &kp N3 &kp KP_DIVIDE &none
&mp_cs AKY_SPC AA38 AA39 AKY_RET &mp_dc
>;
};

Expand All @@ -101,7 +101,7 @@
AKY_ESC &kp F9 &kp F10 &kp F11 &kp F12 &none &none &none &kp PG_UP &none &none NAV_DEL
&mp_bc AK13 AK14 AK15 AK16 &none &none AK19 AK20 AK21 AK22 NAV_BSPC
AKY_TAB &kp F1 &kp F2 &kp F3 &kp F4 &none &none &none &none &none &none &none
&mp_cs KEY_SPC AK38 AK39 AKY_RET &mp_dc
&mp_cs AKY_SPC AK38 AK39 AKY_RET &mp_dc
>;
};

Expand All @@ -126,7 +126,7 @@
AKY_ESC &m_s_b1 &m_s_b2 &none AS04 AS05 &none &kp K_VOL_DN &kp K_MUTE &kp K_VOL_UP AS10 AS11
AS12 &m_s_b3 &m_s_b4 &none AS16 AS17 &none &kp K_PREV &kp K_PP &kp K_NEXT AS22 AS23
AS24 &m_s_b5 &m_s_b6 &none AS28 AS29 &none &none &kp K_STOP &none &none &none
&kp C_BRI_DN KEY_SPC &to_aBAS &to_aAXN AKY_RET &kp C_BRI_UP
&kp C_BRI_DN AKY_SPC &to_aBAS &to_aAXN AKY_RET &kp C_BRI_UP
>;
};

22 changes: 11 additions & 11 deletions config/os/mac/keymap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
MKY_ESC &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &mp_mi_u &mp_mi_y &mp_k_m NAV_DEL
&mp_bc MB13 MB14 MB15 MB16 &kp G &kp M MB19 MB20 MB21 MB22 NAV_BSPC
MKY_TAB &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &mp_cs &mp_dc &mp_mk_q MB35
MB36 KEY_SPC MB38 MB39 MKY_RET MB41
MB36 MKY_SPC MB38 MB39 MKY_RET MB41
>;
};

Expand All @@ -44,7 +44,7 @@
MKY_ESC &kp AT &mp_mDEV_pound &mp_mDEV_money &kp PLUS &m_mi_d &m_mi_t &kp MINUS &kp UNDER &kp PRCNT &m_mi_c NAV_DEL
&mp_bc MD13 MD14 MD15 MD16 &m_mi_s &m_mi_g MD19 MD20 MD21 MD22 NAV_BSPC
MKY_TAB &kp LC(R) &kp LPAR &kp RPAR &kp ASTRK &kp BSLH &kp FSLH &mp_mDEV_qs &kp LT &kp GT &mp_mDEV_ql &kp F12
&mp_cs KEY_SPC MD38 MD39 MKY_RET &mp_dc
&mp_cs MKY_SPC MD38 MD39 MKY_RET &mp_dc
>;
};

Expand All @@ -67,18 +67,18 @@
#define MA38 &to_mBAS
#define MA39 &mo_mFNKmAXN_to_mFNK 0 0

#define KEY_UNDO &kp RC(Z) // tap: undo
#define KEY_REDO &kp RC(Y) // tap: redo
#define KEY_CUT &kp RC(X) // tap: cut
#define KEY_COPY &kp RC(C) // tap: copy
#define KEY_PASTE &kp RC(V) // tap: paste | shift: paste without format
#define MKY_UNDO &kp RC(Z) // tap: undo
#define MKY_REDO &kp RC(Y) // tap: redo
#define MKY_CUT &kp RC(X) // tap: cut
#define MKY_COPY &kp RC(C) // tap: copy
#define MKY_PASTE &kp RC(V) // tap: paste | shift: paste without format

label = "mAXN";
bindings = <
MKY_ESC MA01 &mp_ma_prev &kp UP &mp_ma_next MA05 &kp KP_PLUS &kp N7 &kp N8 &kp N9 &kp KP_MULTIPLY NAV_DEL
&mp_bc MA13 MA14 MA15 MA16 MA17 &kp N0 MA19 MA20 MA21 MA22 NAV_BSPC
MKY_TAB KEY_UNDO KEY_CUT KEY_COPY KEY_PASTE KEY_REDO &mp_k_m &kp N1 &kp N2 &kp N3 &kp KP_DIVIDE MA35
&mp_cs KEY_SPC MA38 MA39 MKY_RET &mp_dc
MKY_TAB MKY_UNDO MKY_CUT MKY_COPY MKY_PASTE MKY_REDO &mp_k_m &kp N1 &kp N2 &kp N3 &kp KP_DIVIDE MA35
&mp_cs MKY_SPC MA38 MA39 MKY_RET &mp_dc
>;
};

Expand All @@ -101,7 +101,7 @@
MKY_ESC &kp F9 &kp F10 &kp F11 &kp F12 &none &none &none &kp PG_UP &none &none NAV_DEL
&mp_bc MK13 MK14 MK15 MK16 &none &none MK19 MK20 MK21 MK22 NAV_BSPC
MKY_TAB &kp F1 &kp F2 &kp F3 &kp F4 &none &none &none &none &none &none &none
&mp_cs KEY_SPC MK38 MK39 MKY_RET &mp_dc
&mp_cs MKY_SPC MK38 MK39 MKY_RET &mp_dc
>;
};

Expand Down Expand Up @@ -131,7 +131,7 @@
MKY_ESC &m_s_b1 &m_s_b2 &none MS04 MS05 MS07 &kp C_VOL_DN &kp C_MUTE &kp C_VOL_UP MS10 MS11
MS12 &m_s_b3 &m_s_b4 &none MS16 MS17 MS18 &kp C_PREV &kp C_PP &kp C_NEXT MS22 MS23
MS24 &m_s_b5 &m_s_b6 &none MS28 MS29 MS30 &kp C_RW &kp C_STOP &kp C_FF MS34 &none
&kp C_BRI_DN KEY_SPC &to_mBAS &to_mAXN MKY_RET &kp C_BRI_UP
&kp C_BRI_DN MKY_SPC &to_mBAS &to_mAXN MKY_RET &kp C_BRI_UP
>;
};

22 changes: 11 additions & 11 deletions config/os/windows/keymap.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
WKY_ESC &kp Q &kp W &kp F &kp P &kp B &kp J &kp L &mp_wi_u &mp_wi_y &mp_k_m NAV_DEL
&mp_bc WB13 WB14 WB15 WB16 &kp G &kp M WB19 WB20 WB21 WB22 NAV_BSPC
WKY_TAB &kp Z &kp X &kp C &kp D &kp V &kp K &kp H &mp_cs &mp_dc &mp_wk_q WB35
WB36 KEY_SPC WB38 WB39 WKY_RET WB41
WB36 WKY_SPC WB38 WB39 WKY_RET WB41
>;
};

Expand All @@ -44,7 +44,7 @@
WKY_ESC &kp AT &mp_wDEV_pound &mp_wDEV_money &kp PLUS &m_wi_d &m_wi_t &kp MINUS &kp UNDER &kp PRCNT &m_wi_c NAV_DEL
&mp_bc WD13 WD14 WD15 WD16 &m_wi_s &m_wi_g WD19 WD20 WD21 WD22 NAV_BSPC
WKY_TAB &kp LC(R) &kp LPAR &kp RPAR &kp ASTRK &kp BSLH &kp FSLH &mp_wDEV_qs &kp LT &kp GT &mp_wDEV_ql &kp F12
&mp_cs KEY_SPC WD38 WD39 WKY_RET &mp_dc
&mp_cs WKY_SPC WD38 WD39 WKY_RET &mp_dc
>;
};

Expand All @@ -67,18 +67,18 @@
#define WA38 &to_wBAS
#define WA39 &mo_wFNKwAXN_to_wFNK 0 0

#define KEY_UNDO &kp RC(Z) // tap: undo
#define KEY_REDO &kp RC(Y) // tap: redo
#define KEY_CUT &kp RC(X) // tap: cut
#define KEY_COPY &kp RC(C) // tap: copy
#define KEY_PASTE &kp RC(V) // tap: paste | shift: paste without format
#define WKY_UNDO &kp RC(Z) // tap: undo
#define WKY_REDO &kp RC(Y) // tap: redo
#define WKY_CUT &kp RC(X) // tap: cut
#define WKY_COPY &kp RC(C) // tap: copy
#define WKY_PASTE &kp RC(V) // tap: paste | shift: paste without format

label = "wAXN";
bindings = <
WKY_ESC WA01 &mp_wa_prev &kp UP &mp_wa_next WA05 &kp KP_PLUS &kp N7 &kp N8 &kp N9 &kp KP_MULTIPLY NAV_DEL
&mp_bc WA13 WA14 WA15 WA16 WA17 &kp N0 WA19 WA20 WA21 WA22 NAV_BSPC
WKY_TAB KEY_UNDO KEY_CUT KEY_COPY KEY_PASTE KEY_REDO &mp_k_m &kp N1 &kp N2 &kp N3 &kp KP_DIVIDE WA35
&mp_cs KEY_SPC WA38 WA39 WKY_RET &mp_dc
WKY_TAB WKY_UNDO WKY_CUT WKY_COPY WKY_PASTE WKY_REDO &mp_k_m &kp N1 &kp N2 &kp N3 &kp KP_DIVIDE WA35
&mp_cs WKY_SPC WA38 WA39 WKY_RET &mp_dc
>;
};

Expand All @@ -101,7 +101,7 @@
WKY_ESC &kp F9 &kp F10 &kp F11 &kp F12 &none &none &none &kp PG_UP &none &none NAV_DEL
&mp_bc WK13 WK14 WK15 WK16 &none &none WK19 WK20 WK21 WK22 NAV_BSPC
WKY_TAB &kp F1 &kp F2 &kp F3 &kp F4 &none &none &none &none &none &none &none
&mp_cs KEY_SPC WK38 WK39 WKY_RET &mp_dc
&mp_cs WKY_SPC WK38 WK39 WKY_RET &mp_dc
>;
};

Expand Down Expand Up @@ -131,7 +131,7 @@
WKY_ESC &m_s_b1 &m_s_b2 &none WS04 WS05 WS07 &kp C_VOL_DN &kp C_MUTE &kp C_VOL_UP WS10 WS11
WS12 &m_s_b3 &m_s_b4 &none WS16 WS17 WS18 &kp C_PREV &kp C_PP &kp C_NEXT WS22 WS23
WS24 &m_s_b5 &m_s_b6 &none WS28 WS29 WS30 &kp C_RW &kp C_STOP &kp C_FF WS34 &none
&kp C_BRI_DN KEY_SPC &to_wBAS &to_wAXN WKY_RET &kp C_BRI_UP
&kp C_BRI_DN WKY_SPC &to_wBAS &to_wAXN WKY_RET &kp C_BRI_UP
>;
};

0 comments on commit 11229ca

Please sign in to comment.