From e3ab6598e9c676132de12cf48d1e380d3c2b90b1 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 31 Dec 2024 18:44:04 -0500 Subject: [PATCH] updated draw function; build all now also draws --- Justfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 2cbf728..4985359 100644 --- a/Justfile +++ b/Justfile @@ -67,6 +67,7 @@ build expr *west_args: _parse_combos echo "$targets" | while IFS=, read -r board shield snippet; do just _build_single "$board" "$shield" "$snippet" {{ west_args }} done + just draw # clear build cache and artifacts clean: @@ -84,10 +85,13 @@ clean-nix: draw: #!/usr/bin/env bash set -euo pipefail + echo "Parsing keymap..." keymap -c "{{ draw }}/config.yaml" parse -z "{{ config }}/corne.keymap" >"{{ draw }}/base.yaml" + echo "Drawing vector graphics..." 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 + echo "Converting to png..." + inkscape --export-type png --export-filename {{ draw }}/keymap.png --export-dpi 300 --export-background=gray {{ draw }}/base.svg > /dev/null 2>&1 # initialize west init: