summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-07-16 12:02:29 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-07-16 12:02:29 -0400
commit47d6193b09a7668f296569612a34a8d5c1d7e11c (patch)
treecdbdf1869861a680c1ff16d10dca324c6a2e13f8
parent233e712067552ae65f26bd4c925d3fba434bda03 (diff)
so many layers
-rw-r--r--config/reviung41.keymap71
1 files changed, 56 insertions, 15 deletions
diff --git a/config/reviung41.keymap b/config/reviung41.keymap
index 54a0516..3e0cc64 100644
--- a/config/reviung41.keymap
+++ b/config/reviung41.keymap
@@ -42,11 +42,14 @@
#define QW 0
#define DV 1
-#define LOW 2
-#define UPR 3
-#define NAV 4
-#define FN 5
+#define GAMING 2
+#define LOW 3
+#define UPR 4
+#define NAV 5
#define MOUSE 6
+#define DVLOW 7
+#define GAMELOW 8
+#define FN 9
#define HM1(k) hm_slow LGUI k
#define HM2(k) hm_med LALT k
@@ -94,10 +97,18 @@
conditional_layers {
compatible = "zmk,conditional-layers";
- tri_layer {
+ fn_layer {
if-layers = <LOW UPR>;
then-layer = <FN>;
};
+ dvlow_layer {
+ if-layers = <DV LOW>;
+ then-layer = <DVLOW>;
+ };
+ gamelow_layer {
+ if-layers = <GAMING LOW>;
+ then-layer = <GAMELOW>;
+ };
};
keymap {
@@ -119,12 +130,22 @@
// DV - Dvorak layer
bindings = <
&kp TAB &kp SQT &kp COMMA &kp DOT &kp P &kp Y &kp F &kp G &kp C &kp R &kp L &trans
- &kp LCTRL &kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S &trans
+ &kp LCTRL &HM1(A) &HM2(O) &HM3(E) &HM4(U) &kp I &kp D &HM4(H) &HM3(T) &HM2(N) &HM1(S) &trans
&kp LSHFT &kp SEMI &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z &trans
&kp LALT &mo LOW &kp SPACE &mo UPR &kp NAV
>;
};
+ gaming_layer {
+ bindings = <
+&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &trans
+&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &trans
+&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp SLASH &trans
+
+&kp SPACE &mo LOW &kp SPACE &mo UPR &mo NAV
+ >;
+ };
+
lower_layer {
bindings = <
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &trans
@@ -155,22 +176,42 @@
>;
};
- function_layer {
+ mouse_layer {
+ // Waiting for https://github.com/zmkfirmware/zmk/pull/778
bindings = <
-&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
-&trans &kp F11 &kp F12 &trans &to DV &to QW &rgb_ug RGB_TOG &trans &rgb_ug RGB_EFF &rgb_ug RGB_HUI &rgb_ug RGB_SAI &rgb_ug RGB_BRI
-&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &trans &trans &rgb_ug RGB_EFR &rgb_ug RGB_HUD &rgb_ug RGB_SAD &rgb_ug RGB_BRD
+&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
+&trans &kp KP_N4 &kp KP_N3 &kp KP_N2 &kp KP_N1 &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
+&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans
>;
};
- mouse_layer {
- // Waiting for https://github.com/zmkfirmware/zmk/pull/778
+ dvorak_lower_layer {
bindings = <
-&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
-&trans &kp KP_N4 &kp KP_N3 &kp KP_N2 &kp KP_N1 &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans
-&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
+&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp STAR &kp LPAR &kp RPAR &trans
+&trans &kp LGUI &kp LALT &kp LCTL &kp LSHFT &kp BSLH &kp FSLH &kp UNDER &kp PLUS &kp LBRC &kp RBRC &trans
+&trans &kp GRAVE &kp TILDE &kp TAB &kp ESC &kp PIPE &kp QMARK &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &trans
+
+&trans &trans &trans &trans &trans
+ >;
+ };
+
+ gaming_lower_layer {
+ bindings = <
+&trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N9 &trans &trans &trans &trans &trans &trans
+&trans &kp N5 &kp N6 &kp N7 &kp N8 &kp N0 &trans &trans &trans &trans &trans &trans
+&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
+
+&trans &trans &trans &trans &trans
+ >;
+ };
+
+ function_layer {
+ bindings = <
+&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
+&trans &kp F11 &kp F12 &to GAMING &to DV &to QW &rgb_ug RGB_TOG &trans &rgb_ug RGB_EFF &rgb_ug RGB_HUI &rgb_ug RGB_SAI &rgb_ug RGB_BRI
+&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &trans &trans &rgb_ug RGB_EFR &rgb_ug RGB_HUD &rgb_ug RGB_SAD &rgb_ug RGB_BRD
&trans &trans &trans &trans &trans
>;