From 7914b61ecf6ddde0bd18f064f76f7397cbde387f Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Tue, 31 Dec 2024 18:23:20 -0500 Subject: [PATCH] feat: better keymap drawing --- Justfile | 3 ++- draw/config.yaml | 2 +- flake.nix | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 8b8b8ca..2cbf728 100644 --- a/Justfile +++ b/Justfile @@ -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: diff --git a/draw/config.yaml b/draw/config.yaml index 4d1f902..44f0293 100644 --- a/draw/config.yaml +++ b/draw/config.yaml @@ -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 diff --git a/flake.nix b/flake.nix index 28377fa..4c52880 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,8 @@ pkgs.cmake pkgs.dtc pkgs.ninja + # for drawing + pkgs.inkscape # pkgs.ccache # pkgs.dfu-util # pkgs.qemu