From 1a58608ea8800c31199a04ac43622c58c6d974df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Berbain?= Date: Mon, 8 Jan 2024 15:14:46 +0100 Subject: [PATCH] add colemak-dh base layer --- config/keymap.dtsi | 37 +++-- keymap-drawer/keymap.svg | 306 ++++++++++++++++++++++++++++++-------- keymap-drawer/keymap.yaml | 188 ++++++++++++++++------- 3 files changed, 406 insertions(+), 125 deletions(-) diff --git a/config/keymap.dtsi b/config/keymap.dtsi index 6f90c42..dd5d42d 100644 --- a/config/keymap.dtsi +++ b/config/keymap.dtsi @@ -4,18 +4,18 @@ #include #include -#define DFT 0 -#define NUM 1 -#define SYM 2 -#define NAV 3 +#define QWE 0 +#define CDH 1 -#define ADJ 4 +#define NUM 2 +#define SYM 3 +#define NAV 4 -#define FUN 5 -#define ACC 6 -#define MED 7 +#define ADJ 5 -#define NIL 8 +#define FUN 6 +#define ACC 7 +#define MED 8 #define ___ &none @@ -44,7 +44,7 @@ combo_acc { timeout-ms = <50>; key-positions = <15 16>; - layers = ; + layers = ; bindings = <&sl ACC>; }; combo_bt_clr_left { @@ -151,8 +151,8 @@ keymap { compatible = "zmk,keymap"; - alpha { - label = "alpha"; + qwerty { + label = "qwerty"; bindings = < &kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &sl ADJ &kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT &sl FUN @@ -160,6 +160,15 @@ &shift &mo SYM &kp SPACE &mo NAV &num NUM 0 &caps_word >; }; + colemak { + label = "colemak"; + bindings = < +&trans &kp Q &kp W &kp F &kp P &kp B &kp K &kp L &kp U &kp Y &kp SQT &trans +&trans &kp A &kp R &kp S &kp T &kp G &kp M &kp N &kp E &kp I &kp O &trans +&trans &kp Z &kp X &kp C &kp D &kp V &kp J &kp H &cs &dc &kp FSLH &trans + &trans &trans &trans &trans &trans &trans + >; + }; num { label = "num"; bindings = < @@ -190,8 +199,8 @@ adjust { label = "adj"; bindings = < -&to DFT ___ &out OUT_USB &out OUT_TOG &out OUT_BLE ___ ___ &out OUT_BLE &out OUT_TOG &out OUT_USB ___ ___ -___ &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 4 &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 ___ +&to QWE ___ &out OUT_USB &out OUT_TOG &out OUT_BLE ___ ___ &out OUT_BLE &out OUT_TOG &out OUT_USB ___ ___ +&to CDH &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_SEL 4 &bt BT_SEL 3 &bt BT_SEL 2 &bt BT_SEL 1 &bt BT_SEL 0 ___ ___ &bootloader &sys_reset &ext_power EP_ON &ext_power EP_TOG &ext_power EP_OFF &ext_power EP_OFF &ext_power EP_TOG &ext_power EP_ON &sys_reset &bootloader &tog MED &trans &trans &trans &trans &trans &trans >; diff --git a/keymap-drawer/keymap.svg b/keymap-drawer/keymap.svg index bbcd0d9..187540e 100644 --- a/keymap-drawer/keymap.svg +++ b/keymap-drawer/keymap.svg @@ -1,4 +1,4 @@ - + - -alpha: + +qwerty: @@ -149,7 +149,7 @@ path.combo { -adj +adjust @@ -253,7 +253,7 @@ path.combo { - +RSHFT cw @@ -280,13 +280,13 @@ path.combo { -acc +accents - -sym: + +colemak: @@ -294,43 +294,43 @@ path.combo { -⇧⌘` +Q -⌘⇥ +W -⌃⇧⇥ +F -⌃⇥ +P -⌘` +B -⌥⌫ +K -! +L -@ +U -# +Y -$ +' @@ -342,46 +342,43 @@ path.combo { - - +A - - +R - - +S - - +T +G - +M -- +N -_ +E -% +I -^ +O @@ -393,38 +390,45 @@ path.combo { +Z +X +C +D +V - +J -& +H -* +, +; -<[{( +. +: -)}]> +/ @@ -434,25 +438,30 @@ path.combo { - - + + + - - - + + + - - -nav -nav + + + + + + +accents + @@ -610,9 +619,9 @@ path.combo { - - -0 + + + @@ -625,6 +634,7 @@ path.combo { num +toggle @@ -632,7 +642,178 @@ path.combo { - + +sym: + + + + + + + +⇧⌘` + + + +⌘⇥ + + + +⌃⇧⇥ + + + +⌃⇥ + + + +⌘` + + + +⌥⌫ + + + +! + + + +@ + + + +# + + + +$ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +- + + + +_ + + + +% + + + +^ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +& + + + +* + + + +<[{( + + + +)}]> + + + + + + + + + + + + + + + + + + + + + + + + + + +nav +nav + + + + nav: @@ -788,7 +969,7 @@ path.combo { - +RSHFT cw @@ -802,15 +983,17 @@ path.combo { nav +toggle - -adj: + +adjust: -alpha +qwerty +toggle @@ -865,6 +1048,8 @@ path.combo { +colemak +toggle @@ -987,6 +1172,7 @@ path.combo { media +toggle @@ -1030,7 +1216,7 @@ path.combo { - + fun: @@ -1181,8 +1367,8 @@ path.combo { - -acc: + +accents: @@ -1327,7 +1513,7 @@ path.combo { - + media: @@ -1444,7 +1630,8 @@ path.combo { -alpha +media +toggle @@ -1456,7 +1643,8 @@ path.combo { -alpha +media +toggle diff --git a/keymap-drawer/keymap.yaml b/keymap-drawer/keymap.yaml index 34672a6..33222e1 100644 --- a/keymap-drawer/keymap.yaml +++ b/keymap-drawer/keymap.yaml @@ -1,6 +1,6 @@ layout: {qmk_keyboard: corne_rotated, qmk_layout: LAYOUT_split_3x6_3} layers: - alpha: + qwerty: - Esc - Q - W @@ -12,7 +12,7 @@ layers: - I - O - P - - {t: adj, h: ' '} + - {t: adjust, h: ' '} - ⇥ - A - S @@ -37,55 +37,55 @@ layers: - {t: ., s: ':'} - / - 🐯 - - {t: ⇧, h: ' ', s: cw} + - {t: RSHFT, h: ' ', s: cw} - sym - ␣ - nav - {t: '&num_word', h: num} - cw - sym: + colemak: - {t: ▽, type: trans} - - ⇧⌘` - - ⌘⇥ - - ⌃⇧⇥ - - ⌃⇥ - - ⌘` - - ⌥⌫ - - '!' - - '@' - - '#' - - $ + - Q + - W + - F + - P + - B + - K + - L + - U + - Y + - '''' - {t: ▽, type: trans} - {t: ▽, type: trans} - - {t: ⇧, h: ' '} - - {t: ⌃, h: ' '} - - {t: ⌥, h: ' '} - - {t: ⌘, h: ' '} - - '' - - ⌫ - - '-' - - _ - - '%' - - ^ + - A + - R + - S + - T + - G + - M + - N + - E + - I + - O + - {t: ▽, type: trans} + - {t: ▽, type: trans} + - Z + - X + - C + - D + - V + - J + - H + - {t: ',', s: ;} + - {t: ., s: ':'} + - / + - {t: ▽, type: trans} - {t: ▽, type: trans} - {t: ▽, type: trans} - - '' - - '' - - '' - - '' - - '' - - ⌦ - - '&' - - '*' - - <[{( - - )}]> - {t: ▽, type: trans} - {t: ▽, type: trans} - - {type: held} - {t: ▽, type: trans} - - ⏎ - {t: ▽, type: trans} - - {t: nav, h: nav} num: - {t: ▽, type: trans} - _ @@ -124,11 +124,54 @@ layers: - {t: ▽, type: trans} - {t: ▽, type: trans} - {t: ▽, type: trans} - - '0' - {t: ▽, type: trans} - {t: ▽, type: trans} - - {t: num, type: held} - {t: ▽, type: trans} + - {t: num, h: toggle, type: held} + - {t: ▽, type: trans} + sym: + - {t: ▽, type: trans} + - ⇧⌘` + - ⌘⇥ + - ⌃⇧⇥ + - ⌃⇥ + - ⌘` + - ⌥⌫ + - '!' + - '@' + - '#' + - $ + - {t: ▽, type: trans} + - {t: ▽, type: trans} + - {t: ⇧, h: ' '} + - {t: ⌃, h: ' '} + - {t: ⌥, h: ' '} + - {t: ⌘, h: ' '} + - '' + - ⌫ + - '-' + - _ + - '%' + - ^ + - {t: ▽, type: trans} + - {t: ▽, type: trans} + - '' + - '' + - '' + - '' + - '' + - ⌦ + - '&' + - '*' + - <[{( + - )}]> + - {t: ▽, type: trans} + - {t: ▽, type: trans} + - {type: held} + - {t: ▽, type: trans} + - ⏎ + - {t: ▽, type: trans} + - {t: nav, h: nav} nav: - {t: ▽, type: trans} - '' @@ -168,12 +211,12 @@ layers: - {t: ▽, type: trans} - {t: ▽, type: trans} - {t: ▽, type: trans} - - {t: ⇧, h: ' ', s: cw} + - {t: RSHFT, h: ' ', s: cw} - {type: held} - {t: ▽, type: trans} - - nav - adj: - - alpha + - {t: nav, h: toggle} + adjust: + - {t: qwerty, h: toggle} - '' - Out USB - Out TOG @@ -185,7 +228,7 @@ layers: - Out USB - '' - {type: held} - - '' + - {t: colemak, h: toggle} - BT 1 - BT 2 - BT 3 @@ -208,7 +251,7 @@ layers: - EP ON - Reset - Boot - - media + - {t: media, h: toggle} - {t: ▽, type: trans} - {t: ▽, type: trans} - {t: ▽, type: trans} @@ -258,7 +301,7 @@ layers: - '' - '' - '' - acc: + accents: - '' - LA(Q) - '' @@ -301,15 +344,56 @@ layers: - {t: ▽, type: trans} - {t: ▽, type: trans} - {t: ▽, type: trans} - media: [I, O, LG(W), '', ↑, VOL UP, VOL UP, ↑, '', LG(W), I, O, J, K, '', '', ↓, VOL DN, VOL DN, ↓, '', '', J, K, ←, →, '', '', alpha, MUTE, MUTE, alpha, '', '', - ←, →, Esc, ⏎, ␣, ␣, ⏎, Esc] + media: + - I + - O + - LG(W) + - '' + - ↑ + - VOL UP + - VOL UP + - ↑ + - '' + - LG(W) + - I + - O + - J + - K + - '' + - '' + - ↓ + - VOL DN + - VOL DN + - ↓ + - '' + - '' + - J + - K + - ← + - → + - '' + - '' + - {t: media, h: toggle} + - MUTE + - MUTE + - {t: media, h: toggle} + - '' + - '' + - ← + - → + - Esc + - ⏎ + - ␣ + - ␣ + - ⏎ + - Esc combos: - p: [15, 16] - k: {t: acc, h: ' '} - l: [alpha] + k: {t: accents, h: ' '} + l: [qwerty, colemak] - p: [1, 5] k: BT CLR - l: [adj] + l: [adjust] - p: [6, 10] k: BT CLR - l: [adj] + l: [adjust]