-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add keymap drawer * draw layout enforced * draw layout for a keymap --------- Co-authored-by: art4ride <art4ride@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
1,250 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Draw keymap diagrams using keymap-drawer ZMK user config workflow | ||
name: Draw ZMK keymaps | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- 'config/*.keymap' | ||
- 'config/includes/*.dtsi' | ||
- keymap-drawer/config.yaml | ||
- .github/workflows/draw-keymaps.yml | ||
|
||
jobs: | ||
draw: | ||
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main | ||
with: | ||
keymap_patterns: 'config/*.keymap' | ||
config_path: keymap-drawer/config.yaml | ||
output_folder: keymap-drawer | ||
install_branch: main | ||
amend_commit: true | ||
draw_args: "ergonaut_one:'-k corne_rotated -l LAYOUT_split_3x6_3'" | ||
json_path: keymap-drawer/layouts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
# configuration for https://github.com/caksoylar/keymap-drawer | ||
parse_config: | ||
raw_binding_map: | ||
'&sys_reset': Reset | ||
'&bootloader': Boot | ||
'&swapper': Win Next | ||
'&caps_word': Caps Word | ||
'&inv_qm': ¿ | ||
|
||
'&kp LC(LG(LEFT))': Desk Left | ||
'&kp LC(LG(RIGHT))': Desk Right | ||
'&kp LC(TAB)': Tab Right | ||
'&kp LC(LS(TAB))': Tab Left | ||
'&kp LA(F4)': Win Close | ||
'&kp LC(F4)': Tab Close | ||
'&kp LS(TAB)': Win Prev | ||
'&kp LS(INS)': Paste | ||
'&kp LG(L)': Lock | ||
|
||
'&out OUT_USB': Out USB | ||
'&out OUT_BLE': Out BLE | ||
|
||
'&bt BT_SEL 0': BT 1 | ||
'&bt BT_SEL 1': BT 2 | ||
'&bt BT_SEL 2': BT 3 | ||
'&bt BT_SEL 3': BT 4 | ||
'&bt BT_SEL 4': BT 5 | ||
|
||
'&mmv MOVE_UP': Mouse ↑ | ||
'&mmv MOVE_DOWN': Mouse ↓ | ||
'&mmv MOVE_LEFT': Mouse ← | ||
'&mmv MOVE_RIGHT': Mouse → | ||
|
||
'&msc SCRL_UP': Scroll ↑ | ||
'&msc SCRL_DOWN': Scroll ↓ | ||
'&msc SCRL_LEFT': Scroll ← | ||
'&msc SCRL_RIGHT': Scroll → | ||
|
||
'&mkp LCLK': Left Click | ||
'&mkp RCLK': Right Click | ||
'&mkp MCLK': Middle Click | ||
'&mkp MB4': Back Click | ||
'&mkp MB5': Forward Click | ||
|
||
zmk_combos: | ||
combo_tab: {align: top, o: 0.15} | ||
combo_del: {align: top, o: 0.15} | ||
combo_f12: {align: bottom} | ||
combo_btclr: {align: bottom} | ||
combo_play: {align: right} | ||
combo_capswd: {draw_separate: true} | ||
combo_semi: {draw_separate: true} | ||
combo_grave: {draw_separate: true} | ||
combo_lpar: {draw_separate: true} | ||
combo_rpar: {draw_separate: true} | ||
combo_lbkt: {draw_separate: true} | ||
combo_rbkt: {draw_separate: true} | ||
combo_tab: {draw_separate: true} | ||
combo_del: {draw_separate: true} | ||
combo_esc: {draw_separate: true} | ||
combo_ret: {draw_separate: true} | ||
combo_lock: {draw_separate: true} | ||
combo_bslh: {draw_separate: true} | ||
combo_slsh: {draw_separate: true} | ||
|
||
zmk_keycode_map: | ||
# custom mappings | ||
C_VOL_UP: Vol Up | ||
C_VOL_DN: Vol Down | ||
C_AL_CALC: Calc | ||
C_PP: Play Pause | ||
|
||
LCTRL: Ctrl | ||
RCTRL: Ctrl | ||
LALT: Alt | ||
RALT: Alt | ||
LGUI: Gui | ||
RGUI: Gui | ||
LSHFT: Shift | ||
RSHFT: Shift | ||
ESC: Esc | ||
SPACE: ␣ | ||
BSPC: ⌫ | ||
RET: ⏎ | ||
TAB: ↹ | ||
DEL: ⌦ | ||
|
||
PG_UP: Page Up | ||
PG_DN: Page Down | ||
INS: Insert | ||
HOME: Home | ||
END: End | ||
CAPS: Caps Lock | ||
PSCRN: Print Scrn | ||
PAUSE_BREAK: Pause Break | ||
|
||
UP: ↑ | ||
DOWN: ↓ | ||
LEFT: ← | ||
RIGHT: → | ||
|
||
C_PP: ⏯ | ||
C_NEXT: ⏭️ | ||
C_PREV: ⏮️ | ||
|
||
# defaults | ||
AMPERSAND: '&' | ||
AMPS: '&' | ||
APOS: "'" | ||
APOSTROPHE: "'" | ||
ASTERISK: '*' | ||
ASTRK: '*' | ||
AT: '@' | ||
AT_SIGN: '@' | ||
BACKSLASH: \ | ||
BSLH: \ | ||
CARET: ^ | ||
COLON: ':' | ||
COMMA: ',' | ||
DLLR: $ | ||
DOLLAR: $ | ||
DOT: . | ||
DOUBLE_QUOTES: '"' | ||
DQT: '"' | ||
EQUAL: '=' | ||
EXCL: '!' | ||
EXCLAMATION: '!' | ||
FSLH: / | ||
GRAVE: '`' | ||
GREATER_THAN: '>' | ||
GT: '>' | ||
HASH: '#' | ||
LBKT: '[' | ||
LBRC: '{' | ||
LEFT_BRACE: '{' | ||
LEFT_BRACKET: '[' | ||
LEFT_PARENTHESIS: ( | ||
LESS_THAN: < | ||
LPAR: ( | ||
LT: < | ||
MINUS: '-' | ||
NON_US_BACKSLASH: \ | ||
NON_US_BSLH: '|' | ||
NON_US_HASH: '#' | ||
NUHS: '#' | ||
PERCENT: '%' | ||
PERIOD: . | ||
PIPE: '|' | ||
PIPE2: '|' | ||
PLUS: + | ||
POUND: '#' | ||
PRCNT: '%' | ||
QMARK: '?' | ||
QUESTION: '?' | ||
RBKT: ']' | ||
RBRC: '}' | ||
RIGHT_BRACE: '}' | ||
RIGHT_BRACKET: ']' | ||
RIGHT_PARENTHESIS: ) | ||
RPAR: ) | ||
SEMI: ; | ||
SEMICOLON: ; | ||
SINGLE_QUOTE: '''' | ||
SLASH: / | ||
SQT: '''' | ||
STAR: '*' | ||
TILDE: '~' | ||
TILDE2: '~' | ||
UNDER: _ | ||
UNDERSCORE: _ | ||
draw_config: | ||
footer_text: 'Created with <a href="https://github.com/caksoylar/keymap-drawer">keymap-drawer</a>' | ||
dark_mode: auto |
Oops, something went wrong.