diff --git a/.dir-locals.el b/.dir-locals.el deleted file mode 100644 index 7b09ed2..0000000 --- a/.dir-locals.el +++ /dev/null @@ -1,5 +0,0 @@ -;;; Directory Local Variables -*- no-byte-compile: t -*- -;;; For more information see (info "(emacs) Directory Variables") - -((auto-mode-alist . (("\\.keymap\\'" . c-mode))) - (c-mode . ((tab-width . 4)))) diff --git a/config/cradio.keymap b/config/cradio.keymap index 7eb5868..c3fde25 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -16,6 +16,8 @@ #define WNAV 3 #define NUM 4 #define FUN 5 +#define MODS 6 +#define FRA 7 #define VOL_DN C_VOL_DN #define VOL_UP C_VOL_UP @@ -49,7 +51,7 @@ hml: hml { compatible = "zmk,behavior-hold-tap"; flavor = "balanced"; - tapping-term-ms = <220>; + tapping-term-ms = <280>; quick-tap-ms = <175>; // repeat on tap-into-hold require-prior-idle-ms = <150>; #binding-cells = <2>; @@ -61,7 +63,7 @@ hmr: hmr { compatible = "zmk,behavior-hold-tap"; flavor = "balanced"; - tapping-term-ms = <220>; + tapping-term-ms = <280>; quick-tap-ms = <175>; // repeat on tap-into-hold require-prior-idle-ms = <150>; #binding-cells = <2>; @@ -69,34 +71,6 @@ hold-trigger-key-positions = ; hold-trigger-on-release; // delay positional check until key-release }; - - lpar_lt: lpar_lt { - compatible = "zmk,behavior-mod-morph"; - mods = <(MOD_LSFT | MOD_RSFT)>; - #binding-cells = <0>; - bindings = <&kp LPAR>, <&kp LT>; - }; - - rpar_gt: rpar_gt { - compatible = "zmk,behavior-mod-morph"; - mods = <(MOD_LSFT | MOD_RSFT)>; - #binding-cells = <0>; - bindings = <&kp RPAR>, <&kp GT>; - }; - - lbrc_lbkt: lbrc_lbkt { - compatible = "zmk,behavior-mod-morph"; - mods = <(MOD_LSFT | MOD_RSFT)>; - #binding-cells = <0>; - bindings = <&kp LBRC>, <&kp LBKT>; - }; - - rbrc_rbkt: rbrc_rbkt { - compatible = "zmk,behavior-mod-morph"; - mods = <(MOD_LSFT | MOD_RSFT)>; - #binding-cells = <0>; - bindings = <&kp RBRC>, <&kp RBKT>; - }; }; conditional_layers { @@ -109,7 +83,12 @@ combos { compatible = "zmk,combos"; - + combo_clear { + timeout-ms = <25>; + key-positions = ; + bindings = <&kp K_CANCEL>; + layers = ; + }; combo_escape { timeout-ms = <25>; key-positions = ; @@ -125,7 +104,7 @@ combo_tab { timeout-ms = <25>; key-positions = ; - bindings = <&kp TAB>; + bindings = << MODS TAB>; layers = ; }; @@ -143,64 +122,31 @@ layers = ; }; - combo_lpar { - timeout-ms = <40>; - key-positions = ; - bindings = <&lpar_lt>; - layers = ; - }; - combo_rpar { - timeout-ms = <40>; - key-positions = ; - bindings = <&rpar_gt>; - layers = ; - }; - - combo_lbrc { - timeout-ms = <40>; - key-positions = ; - bindings = <&lbrc_lbkt>; - layers = ; - }; - combo_rbrc { - timeout-ms = <40>; - key-positions = ; - bindings = <&rbrc_rbkt>; - layers = ; - }; - combo_minus { timeout-ms = <40>; - key-positions = ; + key-positions = ; bindings = <&kp MINUS>; layers = ; }; combo_underscore { timeout-ms = <40>; - key-positions = ; + key-positions = ; bindings = <&kp UNDERSCORE>; layers = ; }; combo_colon { timeout-ms = <40>; - key-positions = ; + key-positions = ; bindings = <&kp COLON>; layers = ; }; combo_semi { timeout-ms = <40>; - key-positions = ; + key-positions = ; bindings = <&kp SEMI>; layers = ; }; - - combo_boot { - timeout-ms = <40>; - key-positions = ; - bindings = <&bootloader>; - layers = ; - }; }; keymap { @@ -224,7 +170,7 @@ sym { bindings = < - //╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮ + //╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮ //│ ~ │ & │ * │ + │ │ │ │ = │ \ │ | │ ` │ &kp TILDE &kp AMPS &kp STAR &kp PLUS &none &none &kp EQUAL &kp BSLH &kp PIPE &kp GRAVE //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ @@ -306,5 +252,22 @@ // ╰──────────┴──────────╯ ╰──────────┴──────────╯ >; }; + + mods { + bindings = < + //╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮ + //│ │ │ │ │ │ │ │ │ │ │ │ + &bootloader &trans &trans &trans &trans &none &none &none &none &none + //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ + //│ - │ │ │ │ │ │ │ CTRL │ ALT │ CMD │ SHIFT │ + &trans &trans &trans &trans &trans &none &sk LCTRL &sk LALT &sk LCMD &sk LSHFT + //├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤ + //│ │ │ │ │ │ │ │ │ RALT │ │ │ + &trans &trans &trans &trans &trans &none &none &sk RALT &none &none + //╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯ + &trans &trans &trans &trans + // ╰──────────┴──────────╯ ╰──────────┴──────────╯ + >; + }; }; }; diff --git a/keymap-drawer/config.yaml b/keymap-drawer/config.yaml index 60f0a3d..db6680d 100644 --- a/keymap-drawer/config.yaml +++ b/keymap-drawer/config.yaml @@ -8,7 +8,7 @@ draw_config: key_ry: 6.0 dark_mode: false n_columns: 1 - separate_combo_diagrams: true + separate_combo_diagrams: false combo_diagrams_scale: 2 inner_pad_w: 2.0 inner_pad_h: 2.0 @@ -133,21 +133,6 @@ parse_config: tap: $$mdi:bluetooth-connect$$ shifted: '4' type: text_with_symblol - - '&bootloader': "BOOT" - - '&lpar_lt': - tap: "(" - hold: "<" - '&rpar_gt': - tap: ")" - hold: ">" - '&lbrc_lbkt': - tap: '{' - hold: '[' - '&rbrc_rbkt': - tap: '}' - hold: ']' sticky_label: $$mdi:circle-small$$ toggle_label: $$mdi:toggle-switch$$ tap_toggle_label: tap-toggle diff --git a/keymap-drawer/cradio.svg b/keymap-drawer/cradio.svg index f428e98..49c6fba 100644 --- a/keymap-drawer/cradio.svg +++ b/keymap-drawer/cradio.svg @@ -1,4 +1,4 @@ - + /* start glyphs */ @@ -144,8 +144,8 @@ text.footer { paint-order: stroke; } -/* styling for combo tap, and key non-tap label text */ -text.combo, text.hold, text.shifted, text.left, text.right { +/* styling for combo tap, and key hold/shifted label text */ +text.combo, text.hold, text.shifted { font-size: 11px; } @@ -159,20 +159,8 @@ text.shifted { dominant-baseline: hanging; } -text.left { - text-anchor: start; -} - -text.right { - text-anchor: end; -} - -text.layer-activator { - text-decoration: underline; -} - /* styling for hold/shifted label text in combo box */ -text.combo.hold, text.combo.shifted, text.combo.left, text.combo.right { +text.combo.hold, text.combo.shifted { font-size: 8px; } @@ -264,14 +252,14 @@ rect.held, rect.combo.held { } -base: +base: - + Q - + W @@ -306,22 +294,22 @@ rect.held, rect.combo.held { U - + Y - + ' - + A - + R @@ -361,23 +349,23 @@ rect.held, rect.combo.held { E - + I - + O - + Z - + X @@ -412,51 +400,89 @@ rect.held, rect.combo.held { , - + . - + / - + - -nav - - +nav + + - + - -num - - +num + + - -sym - +sym + + + +CANCEL + + + + + + + += + + + + +mods + + + + + + + + + + + +- + + + +_ + + + +: + + + +; - -sym: + + +sym: - + ~ - + & @@ -489,21 +515,21 @@ rect.held, rect.combo.held { \ - + | - + ` - + - + $ @@ -538,20 +564,20 @@ rect.held, rect.combo.held { { - + [ - + - + - + ! @@ -586,45 +612,45 @@ rect.held, rect.combo.held { } - + ] - + - + - + - + - + - -nav: + +nav: - + - + @@ -657,22 +683,22 @@ rect.held, rect.combo.held { - + - + - + - + @@ -710,21 +736,21 @@ rect.held, rect.combo.held { - + - + - + - + @@ -760,47 +786,47 @@ rect.held, rect.combo.held { PageDown - + PageUp - + END - + - + - + - + - -winnav: + +winnav: - + - + @@ -843,23 +869,23 @@ rect.held, rect.combo.held { 2 - + 3 - + 4 - + - + @@ -902,22 +928,22 @@ rect.held, rect.combo.held { Gui+N - + Gui+P - + - + - + @@ -960,48 +986,48 @@ rect.held, rect.combo.held { BTNXT - + BTPRV - + - + - + - + - + - -num: + +num: - + - + 7 @@ -1036,22 +1062,22 @@ rect.held, rect.combo.held { - + - + - + - - + 4 @@ -1088,24 +1114,24 @@ rect.held, rect.combo.held { - + - + - + - + 1 @@ -1140,46 +1166,45 @@ rect.held, rect.combo.held { - + - + - + 0 - + - -fun - - +fun + + - + - -fun: + +fun: - + - + F7 @@ -1210,19 +1235,19 @@ rect.held, rect.combo.held { - + - + - + - + F4 @@ -1257,23 +1282,23 @@ rect.held, rect.combo.held { - + - + - + - + F1 @@ -1306,2067 +1331,200 @@ rect.held, rect.combo.held { F11 - + F12 - + - + - + - + - + -Combos: - + +mods: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -= - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -( -< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -) -> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{ -[ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -} -] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -_ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -BOOT - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + +&bootloader + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/keymap-drawer/cradio.yaml b/keymap-drawer/cradio.yaml index e9615c8..a094c80 100644 --- a/keymap-drawer/cradio.yaml +++ b/keymap-drawer/cradio.yaml @@ -1,4 +1,4 @@ -layout: {zmk_keyboard: cradio} +layout: {qmk_keyboard: ferris/sweep} layers: base: - Q @@ -210,7 +210,45 @@ layers: - {type: held} - {type: held} - {t: '$$mdi:chevron-down$$', type: trans} + mods: + - '&bootloader' + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - '' + - '' + - '' + - '' + - '' + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {type: held} + - {type: held} + - {t: '$$mdi:chevron-down$$', type: trans} + - '' + - {t: '$$mdi:apple-keyboard-control$$', h: '$$mdi:circle-small$$'} + - {t: '$$mdi:apple-keyboard-option$$', h: '$$mdi:circle-small$$'} + - {t: '$$mdi:apple-keyboard-command$$', h: '$$mdi:circle-small$$'} + - {t: '$$mdi:apple-keyboard-shift$$', h: '$$mdi:circle-small$$'} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - '' + - '' + - {t: '$$mdi:apple-keyboard-option$$', h: '$$mdi:circle-small$$'} + - '' + - '' + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} + - {t: '$$mdi:chevron-down$$', type: trans} combos: +- p: [3, 4] + k: CANCEL + l: [base] - p: [2, 3] k: $$mdi:keyboard-esc$$ l: [base] @@ -218,7 +256,7 @@ combos: k: '=' l: [base] - p: [12, 13] - k: $$mdi:keyboard-tab$$ + k: {t: '$$mdi:keyboard-tab$$', h: mods} l: [base] - p: [7, 8] k: $$mdi:backspace-outline$$ @@ -227,29 +265,14 @@ combos: k: $$mdi:keyboard-return$$ l: [base] - p: [3, 13] - k: {t: (, h: <} - l: [base] -- p: [6, 16] - k: {t: ), h: '>'} - l: [base] -- p: [2, 12] - k: {t: '{', h: '['} - l: [base] -- p: [7, 17] - k: {t: '}', h: ']'} - l: [base] -- p: [4, 14] k: '-' l: [base] -- p: [14, 24] +- p: [13, 23] k: _ l: [base] -- p: [5, 15] +- p: [6, 16] k: ':' l: [base] -- p: [15, 25] +- p: [16, 26] k: ; l: [base] -- p: [20, 21] - k: BOOT - l: [base]