mirror of
https://github.com/babariviere/zmk-config.git
synced 2025-06-07 09:55:51 +00:00
feat: add keymap-drawer
This commit is contained in:
parent
7bc87e97d9
commit
abf33bc80f
2 changed files with 220 additions and 0 deletions
22
.github/workflows/draw.yaml
vendored
Normal file
22
.github/workflows/draw.yaml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Example for using the keymap-drawer ZMK user config workflow
|
||||
name: Draw ZMK keymaps
|
||||
on:
|
||||
workflow_dispatch: # can be triggered manually
|
||||
push: # automatically run on changes to following paths
|
||||
paths:
|
||||
- "config/*.keymap"
|
||||
- "config/*.dtsi"
|
||||
- "keymap-drawer/config.yaml"
|
||||
# - 'boards/*/*/*.keymap'
|
||||
|
||||
jobs:
|
||||
draw:
|
||||
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
|
||||
permissions:
|
||||
contents: write # allow workflow to commit to the repo
|
||||
with:
|
||||
keymap_patterns: "config/*.keymap" # path to the keymaps to parse
|
||||
config_path: "keymap-drawer/config.yaml" # config file, ignored if not exists
|
||||
output_folder: "keymap-drawer" # path to save produced SVG and keymap YAML files
|
||||
parse_args: "" # map of extra args to pass to `keymap parse`, e.g. "corne:'-l Def Lwr Rse' cradio:''"
|
||||
draw_args: "" # map of extra args to pass to `keymap draw`, e.g. "corne:'-k corne_rotated' cradio:'-k paroxysm'"
|
Loading…
Add table
Add a link
Reference in a new issue