Skip to content

Conversation

@ssbb
Copy link

@ssbb ssbb commented Nov 18, 2025

It's already a string when it comes from yaml config

@caksoylar
Copy link
Owner

I think dts_layout in the config gets cast to Path by Pydantic, since it is supposed to be a file path pointing to a dts file: https://github.com/caksoylar/keymap-drawer/blob/main/keymap_drawer/physical_layout.py#L200

This is an example that seems to work as expected:

layout:
  dts_layout: /home/cem/zmk/app/dts/layouts/foostan/corne/5column.dtsi
layers:
  base:
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A
    - A

Do you actually want to pass the dts file contents as a string in the keymap yaml?

@ssbb
Copy link
Author

ssbb commented Nov 18, 2025

Gotcha, my bad. I just had older version installed (so via pip and pipx in parallel) which took priority. Looks like it's handled just fine now.

@ssbb ssbb closed this Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants