feat: better keymap drawing

This commit is contained in:
Daniel Fichtinger 2024-12-31 18:23:20 -05:00
parent e33d394796
commit 7914b61ecf
3 changed files with 5 additions and 2 deletions

View file

@ -85,8 +85,9 @@ draw:
#!/usr/bin/env bash
set -euo pipefail
keymap -c "{{ draw }}/config.yaml" parse -z "{{ config }}/corne.keymap" >"{{ draw }}/base.yaml"
# keymap -c "{{ draw }}/config.yaml" draw "{{ draw }}/base.yaml" -k "ferris/sweep" >"{{ draw }}/base.svg"
keymap -c "{{ draw }}/config.yaml" draw "{{ draw }}/base.yaml" >"{{ draw }}/base.svg"
# put inkscape command here
inkscape --export-type png --export-filename {{ draw }}/keymap.png --export-dpi 300 --export-background=gray {{ draw }}/base.svg
# initialize west
init:

View file

@ -4,5 +4,5 @@ parse_config:
- "modules/zmk/helpers/include"
draw_config:
footer_text: "urob/zmk-config"
footer_text: "ficcdaf/zmk-config"
dark_mode: true

View file

@ -32,6 +32,8 @@
pkgs.cmake
pkgs.dtc
pkgs.ninja
# for drawing
pkgs.inkscape
# pkgs.ccache
# pkgs.dfu-util
# pkgs.qemu