diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d206931..56a59c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,14 +14,14 @@ jobs: python-version: '3.10' - run: pip install keymap_drawer - name: 'Parse ZMK keymap' - run: keymap -c ./keymap_img/temper_keymap_config.yaml parse -c 10 -z ./config/temper.keymap --base-keymap ./keymap_img/temper_keymap_base.yaml > ./keymap_img/temper_keymap.yaml + run: keymap -c ./keymap_img/dance_keymap_config.yaml parse -c 10 -z ./config/dance.keymap --base-keymap ./keymap_img/dance_keymap_base.yaml > ./keymap_img/dance_keymap.yaml - name: 'Draw keymap' - run: keymap -c ./keymap_img/temper_keymap_config.yaml draw --select-layers default num nav fun -k chocofi ./keymap_img/temper_keymap.yaml > ./keymap_img/temper_keymap.svg + run: keymap -c ./keymap_img/dance_keymap_config.yaml draw --select-layers default num nav fun -k chocofi ./keymap_img/dance_keymap.yaml > ./keymap_img/dance_keymap.svg - name: 'Commit keymap image' run: | git config --global user.name 'GitHub Actions' git config --global user.email 'actions@github.com' - git add ./keymap_img/temper_keymap.svg + git add ./keymap_img/dance_keymap.svg git commit -m 'doc: update keymap image' continue-on-error: true - name: 'Push keymap image' diff --git a/keymap_img/dance_keymap.svg b/keymap_img/dance_keymap.svg new file mode 100644 index 0000000..cd17c19 --- /dev/null +++ b/keymap_img/dance_keymap.svg @@ -0,0 +1,698 @@ + + + +default: + + + +Q + + + +W + + + +F + + + +P + + + +B + + + +J + + + +L + + + +U + + + +Y + + + +' +" + + + +A + + + +R + + + +S + + + +T + + + +G + + + +M + + + +N + + + +E + + + +I + + + +O + + + +Z + + + +X + + + +C + + + +D + + + +V + + + +K + + + +H + + + +, +; + + + +. +: + + + +? +! + + + + + + + +num +sticky + + + + + + + + +SPACE + + + +nav +sticky + + + + + + + + + +num: + + + +` +~ + + + +@ + + + +{ + + + +} + + + +% + + + +* + + + +7 + + + +8 + + + +9 + + + +- +_ + + + +^ + + + +# + + + +( + + + +) + + + +$ + + + +_ + + + +4 + + + +5 + + + +6 + + + ++ + + + +/ +\ + + + +< + + + +[ +{ + + + +] +} + + + +> + + + +& +| + + + +1 + + + +2 + + + +3 + + + += ++ + + + + + + + + + + + + + + +0 + + + + + + + + + + + + +nav: + + + + + + + +MUTE + + + + +VOLDN + + + + + +VOLUP + + + + + + + + + + + + +HOME + + + +END + + + + + + + + + + + + +sticky + + + + +sticky + + + + +sticky + + + + +sticky + + + + + + + + + + + + + + + + + + + + + + + +ESC + + + + + + + +PREV + + + +PP + + + +NEXT + + + + + + + + + + + +RET + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +fun: + + + +qwerty + + + + + + + + + + + + + + + + +OUTTOG + + + + + + + + +F7 + + + +F8 + + + +F9 + + + +F12 + + + +BT +0 + + + +BT +1 + + + +BT +2 + + + +BT +3 + + + +BT +4 + + + + + + + +F4 + + + +F5 + + + +F6 + + + +F11 + + + + + + + + + + + + +BTCLR + + + + + + + + + + + + + + + + +F1 + + + +F2 + + + +F3 + + + +F10 + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/keymap_img/dance_keymap_base.yaml b/keymap_img/dance_keymap_base.yaml new file mode 100644 index 0000000..3467627 --- /dev/null +++ b/keymap_img/dance_keymap_base.yaml @@ -0,0 +1,69 @@ +layout: {qmk_keyboard: chocofi} +layers: + Nav: + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - - '' + - '' + - '' + - '' + - {t: '', type: held} + - '' + Num: + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - - '' + - '' + - '' + - '' + - '' + - {t: '', type: held} + Sym: + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - - '' + - {t: '', type: held} + - '' + - '' + - '' + - '' + Func: + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - - '' + - {t: '', type: held} + - '' + - '' + - '' + - {t: '', type: held} + Adjust: + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - ['', '', '', '', '', '', '', '', '', ''] + - - '' + - '' + - {t: '', type: held} + - '' + - '' + - '' +combos: + - p: [13, 16] + k: 'Caps + + Word' + - p: [30, 31, 32] + k: RET + a: bottom + o: 0.3 + - p: [11, 12, 13] + k: NAV + a: bottom + o: -0.25 + - p: [21, 22, 23] + k: NUM + a: bottom + o: 0.0 \ No newline at end of file diff --git a/keymap_img/dance_keymap_config.yaml b/keymap_img/dance_keymap_config.yaml new file mode 100644 index 0000000..ed8bfaf --- /dev/null +++ b/keymap_img/dance_keymap_config.yaml @@ -0,0 +1,317 @@ +draw_config: + append_colon_to_layer_header: true + arc_radius: 6.0 + arc_scale: 1.0 + combo_h: 26.0 + combo_w: 28.0 + inner_pad_h: 2.0 + inner_pad_w: 2.0 + key_h: 56.0 + key_rx: 6.0 + key_ry: 6.0 + key_w: 60.0 + line_spacing: 1.2 + outer_pad_h: 56.0 + outer_pad_w: 30.0 + small_pad: 2.0 + split_gap: 30.0 + svg_style: | + /* font and background color specifications */ + svg { + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + font-size: 14px; + font-kerning: normal; + text-rendering: optimizeLegibility; + fill: #24292e; + } + + /* default key styling */ + rect { + fill: #f6f8fa; + stroke: #c9cccf; + stroke-width: 1; + } + + /* color accent for combo boxes */ + rect.combo { + fill: #cdf; + } + + /* color accent for held keys */ + rect.held, rect.combo.held { + fill: #fdd; + } + + /* color accent for ghost (optional) keys */ + rect.ghost, rect.combo.ghost { + fill: #ddd; + } + + text { + text-anchor: middle; + dominant-baseline: middle; + } + + /* styling for layer labels */ + text.label { + font-weight: bold; + text-anchor: start; + stroke: white; + stroke-width: 2; + paint-order: stroke; + } + + /* styling for combo tap, and key hold/shifted label text */ + text.combo, text.hold, text.shifted { + font-size: 11px; + } + + text.hold { + text-anchor: middle; + dominant-baseline: auto; + } + + text.shifted { + text-anchor: middle; + dominant-baseline: hanging; + } + + /* styling for hold/shifted label text in combo box */ + text.combo.hold, text.combo.shifted { + font-size: 8px; + } + + /* styling for combo dendrons */ + path { + stroke-width: 1; + stroke: gray; + fill: none; + } +parse_config: + assign_combos_to_layers: false + preprocess: true + qmk_keycode_map: + AMPERSAND: '&' + AMPR: '&' + ASTERISK: '*' + ASTR: '*' + AT: '@' + BACKSLASH: \ + BSLS: \ + CIRC: ^ + CIRCUMFLEX: ^ + COLN: ':' + COLON: ':' + COMM: ',' + COMMA: ',' + DLR: $ + DOLLAR: $ + DOT: . + DOUBLE_QUOTE: '"' + DQT: '"' + DQUO: '"' + EQL: '=' + EQUAL: '=' + EXCLAIM: '!' + EXLM: '!' + GRAVE: '`' + GRV: '`' + GT: '>' + HASH: '#' + LABK: < + LBRC: '[' + LCBR: '{' + LEFT_ANGLE_BRACKET: < + LEFT_BRACKET: '[' + LEFT_CURLY_BRACE: '{' + LEFT_PAREN: ( + LPRN: ( + LT: < + MINS: '-' + MINUS: '-' + 'NO': '' + NONUS_HASH: '#' + NUHS: '#' + PERC: '%' + PERCENT: '%' + PIPE: '|' + PLUS: + + QUES: '?' + QUESTION: '?' + QUOT: '''' + QUOTE: '''' + RABK: '>' + RBRC: ']' + RCBR: '}' + RIGHT_ANGLE_BRACKET: '>' + RIGHT_BRACKET: ']' + RIGHT_CURLY_BRACE: '}' + RIGHT_PAREN: ) + RPRN: ) + SCLN: ; + SEMICOLON: ; + SLASH: / + SLSH: / + TILD: '~' + TILDE: '~' + TRANSPARENT: '' + TRNS: '' + UNDERSCORE: _ + UNDS: _ + SPACE: ⎵ + raw_binding_map: + '&mm_grescm': {t: '⎋', s: '` ~'} + '&mm_bspc_del': {t: '⌫', s: '⌦'} + '&bspc_del': {t: '⌫', s: '⌦'} + '&mm_grescm_gui': {t: ⎋, h: ⌘, s: '~ `'} + '&mm_spc_unds_layer': {t: '⎵', h: 'SYM', s: '_ -'} + '&mm_plus_minus': {t: '+', s: '-'} + '&mm_grave_caret': {t: '`', s: '^'} + '&mm_bracket_r': {t: '(', s: ')'} + '&mm_comma_semi_meh': {t: ',', s: ';', h: 'MEH'} + '&mm_dot_colon': {t: '.', s: ':'} + '&mm_none_undo': '' + '&mm_left_word_cut': '↞' + '&mm_up_save': '↑' + '&mm_down_copy': '↓' + '&mm_none_paste': '' + '&mm_1_cut': '1' + '&mm_2_copy': '2' + '&mm_5_save': '5' + '&swapper_cmd_tab': {t: '⌘↹'} + '&td_at_email': {t: '@'} + '&num_word': 'NUM' + '&nav_word': 'NAV' + '&caps_word_capslock': "Caps\nWord" + '&caps_word': '⇪' + '&td_shift_l': '⇧' + '&td_shift_r': '⇧' + '&td_nav_layer': {t: '⏎', h: 'NAV'} + '&td_bt_clear': 'BT CLR' + '&m_type_md_code_block': '```' + '&kt LSHFT': "⇧\nLock" + '<_num_word 4 0': {t: "Num\nWord", h: 'Num'} + '<og LGUI 5': {t: "Cancel\nNav", h: '⌘'} + '<og LGUI 6': {t: "Cancel\nNum", h: '⌘'} + '<og LGUI 7': {t: "Cancel\nSym", h: '⌘'} + '<og LGUI 8': {t: "Cancel\nFunc", h: '⌘'} + '<og LGUI 9': {t: "Cancel\nAdjust", h: '⌘'} + skip_binding_parsing: false + zmk_keycode_map: + AMPERSAND: '&' + AMPS: '&' + APOS: {t: "'", s: '"'} + APOSTROPHE: < + ASTERISK: '*' + ASTRK: '*' + AT: '@' + AT_SIGN: '@' + BACKSLASH: {t: '\', s: '|'} + BSLH: \ + CARET: ^ + COLON: ':' + COMMA: {t: ',', s: '<'} + DLLR: $ + DOLLAR: $ + DOT: {t: '.', s: '>'} + DOUBLE_QUOTES: '"' + DQT: '"' + EQUAL: {t: '=', s: '+'} + EXCL: '!' + EXCLAMATION: '!' + FSLH: / + GRAVE: {t: '`', s: '~'} + GREATER_THAN: '>' + GT: '>' + HASH: '#' + LBKT: {t: '[', s: '{'} + LBRC: '{' + LEFT_BRACE: '{' + LEFT_BRACKET: '[' + LEFT_PARENTHESIS: ( + LESS_THAN: < + LPAR: ( + LT: < + MINUS: {t: '-', s: '_'} + NON_US_BACKSLASH: \ + NON_US_BSLH: '|' + NON_US_HASH: '#' + NUHS: '#' + PERCENT: '%' + PERIOD: . + PIPE: '|' + PIPE2: '|' + PLUS: + + POUND: '#' + PRCNT: '%' + QMARK: '?' + QUESTION: '?' + RBKT: {t: ']', s: '}'} + RBRC: '}' + RIGHT_BRACE: '}' + RIGHT_BRACKET: ']' + RIGHT_PARENTHESIS: ) + RPAR: ) + SEMI: {t: ';', s: ':'} + SEMICOLON: {t: ';', s: ':'} + SINGLE_QUOTE: {t: '''', s: '"'} + SLASH: {t: '/', s: '?'} + SQT: '''' + STAR: '*' + TILDE: '~' + TILDE2: '~' + UNDER: _ + UNDERSCORE: _ + LCTRL: ⌃ + LALT: ⎇ + LGUI: ⌘ + LSHFT: ⇧ + RCTRL: ⌃ + LEFT_CONTROL: ⌃ + LEFT_ALT: ⎇ + LEFT_GUI: ⌘ + LEFT_SHFT: ⇧ + RALT: ⎇ + RGUI: ⌘ + RSHFT: ⇧ + RIGHT_CONTROL: ⌃ + RIGHT_ALT: ⎇ + RIGHT_GUI: ⌘ + RIGHT_SHFT: ⇧ + LEFT: ← + RIGHT: → + UP: ↑ + DOWN: ↓ + TAB: ↹ + RETURN: '⏎' + ESCAPE: '⎋' + C_REWIND: '⏮' + C_FAST_FORWARD: '⏭' + C_PAUSE: '⏯' + C_MUTE: "VOL\nMUTE" + C_VOLUME_DOWN: "VOL\nDOWN" + C_VOLUME_UP: "VOL\nUP" + C_BRIGHTNESS_DEC: '☀↓' + C_BRIGHTNESS_INC: '☀↑' + LA(LEFT): ↞ + LA(RIGHT): ↠ + LG(LEFT): ⇤ + LG(RIGHT): ⇥ + 'LS(LC(LG(LALT)))': 'HYPER' + 'RS(RC(RG(RALT)))': 'HYPER' + 'LC(LG(LALT))': 'MEH' + 'RC(RG(RALT))': 'MEH' + 'LG(Q)': '⌘Q' + 'LG(W)': '⌘W' + 'LG(GRAVE)': '⌘`' + 'LG(Z)': '⌘Z' + 'LG(X)': '⌘X' + 'LG(C)': '⌘C' + 'LG(V)': '⌘V' + 'LC(TAB)': '⌃↹' + 'LS(LC(TAB))': '⌃⇧↹' +# zmk_combos: +# combo_tog_nav_word: {'a': 'bottom', 'o': -0.25} +# combo_tog_num_word: {'a': 'bottom', 'o': 0.0} +# combo_return: {'a': 'bottom', 'o': 0.3} +# combo_capsword: {'k': "Caps\nWord"} \ No newline at end of file