Skip to content

Problems with Swedish symbols layer drawing in wierd mod+number combinations #166

Answered by caksoylar
Wesztman asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, this is because parsing uses #include "swe_keys.h" to expand the SE_* keycodes so they are observed as their underlying combinations, like LS(N1) for SE_EXCL.

There is a workaround for this, though I probably need to document it somewhere better:

  • Make keymap-drawer ignore the header include by wrapping it within a preprocessor directive:
    #ifndef KEYMAP_DRAWER
    #include "swe_keys.h"
    #endif
  • Make keymap-drawer remove the SE_ prefix from keycodes so that it treats SE_EXCL as EXCL, etc. by putting below in a config file (default path is keymap_drawer.config.yaml):
    parse_config:
      zmk_remove_keycode_prefix: ["SE_"]

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Wesztman
Comment options

@Wesztman
Comment options

@caksoylar
Comment options

@Wesztman
Comment options

@Wesztman
Comment options

Answer selected by Wesztman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants