Skip to content

My Corne ZMK confige for a 42 key corne#74

Merged
precondition merged 1 commit intoprecondition:mainfrom
cyb3rkun:main
Apr 8, 2025
Merged

My Corne ZMK confige for a 42 key corne#74
precondition merged 1 commit intoprecondition:mainfrom
cyb3rkun:main

Conversation

@cyb3rkun
Copy link
Copy Markdown
Contributor

@cyb3rkun cyb3rkun commented Apr 8, 2025

I just thought I'd share my keymap for others looking to find a starting point
It's a mostly minimal keymap with 6 combos for parentheses, brackets, semi-colon and colon.
This layout also has gaming layers, a navigation layer, a mouse-navigation layer, a function layer and a unified symbol/num layer that follows a numpad scheme with some acceptions.

@precondition precondition merged commit f2c8431 into precondition:main Apr 8, 2025
@caksoylar
Copy link
Copy Markdown
Contributor

caksoylar commented Apr 8, 2025

I think it might make sense to use the light mode in keymap-drawer for this, given the website itself is using light backgrounds. (Some previous discussion about dark mode in #60.)

@precondition would it be useful if there was a subsection in https://github.com/precondition/keymapdb/blob/main/db_fields_reference.md#keymapimage-string regarding keymap-drawer? Two things I have in mind are:

  • use dark_mode: false to enforce light mode (this is default in CLI, but not the web app)
  • can consider tweaking the width of the image to fit the layout width of 1024 px. For instance I do this tweak for mine (notice the lack of layout stretching compared to e.g. https://keymapdb.com/keymaps/cyb3rkun/):
perl -pe 's/(<svg width=)".*?"/$1"1024"/' < keymap.svg > keymapdb.svg

edit: changed above to 1024px

@cyb3rkun
Copy link
Copy Markdown
Contributor Author

cyb3rkun commented Apr 8, 2025

@caksoylar

I think it might make sense to use the light mode in keymap-drawer for this, given the website itself is using light backgrounds. (Some previous discussion about dark mode in #60.)

@precondition would it be useful if there was a subsection in https://github.com/precondition/keymapdb/blob/main/db_fields_reference.md#keymapimage-string regarding keymap-drawer? Two things I have in mind are:

* use `dark_mode: false` to enforce light mode (this is default in CLI, but not the web app)

* can consider tweaking the width of the image to fit the layout width of 960 px. For instance I do this tweak for [mine](https://keymapdb.com/keymaps/caksoylar/) (notice the lack of layout stretching compared to e.g. https://keymapdb.com/keymaps/cyb3rkun/):
perl -pe 's/(<svg width=)".*?"/$1"960"/' < keymap.svg > keymapdb.svg

I don't think that's a good idea.
personally when the background is white and the keymap is white I find it very difficult to read without zooming in a lot.
I think having the keys in a darker color to contrast with the background makes it a lot easier to see what is going on.

I just checked the link: https://keymapdb.com/keymaps/cyb3rkun/
I don't see the stretching that you are mentioning.

@caksoylar
Copy link
Copy Markdown
Contributor

I just checked the link: https://keymapdb.com/keymaps/cyb3rkun/
I don't see the stretching that you are mentioning.

Here is a comparison of plain SVG when you click the image on the left, and the web page render on the right:
image

The image is scaled up to fill the 960px width in the webpage, with the image itself being 900px wide.

I don't think that's a good idea.
personally when the background is white and the keymap is white I find it very difficult to read without zooming in a lot.
I think having the keys in a darker color to contrast with the background makes it a lot easier to see what is going on.

Sure, that's personal preference. But the default dark mode in keymap-drawer isn't ideal for light backgrounds, since e.g. the layer header text is still white (with a dark outline for worst-case scenarios like this) rather than black.

If you want dark-colored styling, I'd use dark_mode: auto (or false) and override the light mode styling with CSS. See an example here.

@cyb3rkun
Copy link
Copy Markdown
Contributor Author

cyb3rkun commented Apr 8, 2025

Ok your dark mode suggestions would look a lot better. I'll update it when I have the chance.
I'll also try to fix the stretching.

I assume you used the svg extra style to make the dark mode the way you wanted?
or is there another field that I should be looking for?

@cyb3rkun
Copy link
Copy Markdown
Contributor Author

cyb3rkun commented Apr 8, 2025

Ok I've gotten it to render the dark mode the way you've suggested.

one thing still bothers me, how do I get it to draw combos outside of the keymap like in your example: here

I'm talking about the combo for 1AC and the others that draw the lines with the rounded corner to appear outside of the area where the keys are.

I'd like to do that for my capslock keymap

@cyb3rkun
Copy link
Copy Markdown
Contributor Author

cyb3rkun commented Apr 8, 2025

I just checked and if I attempt to attach the new one here then the layer headers are still white with black outline,
even though when I open it in inkscape, the layer headers will be filled with black.

I'll attach the configurations I have here:

my_keymap.txt
my_config.txt

I've had to rename them to .txt otherwise I could not attach them

@caksoylar
Copy link
Copy Markdown
Contributor

@cyb3rkun I copied your questions to caksoylar/keymap-drawer#167 and will reply, let's continue there to not to go too off topic here.

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.

3 participants