For whatever reason the &kp GRAVE does not yield what it should but a § sign. Everything else seems to work fine. My config: https://github.com/lxwbr/zmk-config-kodama/blob/main/config/boards/shields/kodama/kodama.keymap. My build is a swweeep: https://github.com/sadekbaroudi/sweep36. Anyone experienced similar and might know what the reason might be?
#[SOLVED] &kp GRAVE yields § instead of `
1 messages · Page 1 of 1 (latest)
The keycode names ZMK uses are HID spec ones, which corresponds to using a US English layout in your operating system. Sounds like you use a different layout, so the names will not necessarily match what you see typed in the OS
You can either change your layout to US, figure out what key maps to grave by trial and error, or try to find a header for your layout in https://github.com/joelspadin/zmk-locale-generator and use it in your keymap
That's true, I use U.S. with Umlauts (German). Thanks for the hint, I'll try to find the header first
I am on MacOS and unfortunatelly switching to US layout didn't help. Is there any tool which I can use in order to display the keycode name when I would press it on the laptop keyboard?
I think Karabiner Elements might have that functionality
Header should exist for common de locales, but the ones in the Releases page are for Windows, macos ones might be slightly different
So I had Karabiner Elements already installed before. After your comment I went into the tool and ticked "Treat as a build-in keyboard". I am not sure if it was this or something else I did in the meantime but now it works as it should
Thanks a lot for your help!
That’s interesting, I guess you had a mapping set in Karabiner
It's weird, as soon as I quit Karabiner I get the § sign again. So running Karabiner seems necessary for me. Also running KarabinerViewer and pressing Backtick on my laptop and on the split keyboard yields same key_code: grave_accent_and_tilde but different int value 10 vs 50
You seem to have set up some sort of layout in Karabiner to map your laptop keyboard
I fully uninstalled Karabiner now and still get the §. There must be something else which is screwing with the layout but I cannot figure out what.
Maybe I am not understanding this right, but it seems clear to me. Your OS layout is one that outputs that char, but you were always overriding it with Karabiner Elements to produce a “US-like” output instead. Now that you don’t have Karabiner, you observe the actual OS layout?
What keyboard layout is your OS configured to use?
The OS layout is US
That’s weird, your layout seems to match your language setting instead, i.e. UK English: https://keyshorts.com/blogs/blog/37615873-how-to-identify-macbook-keyboard-localization#uk-british-english
Does macos allow setting layout per keyboard?
Omg, that's it. It's was the initial setup where I didn't pay attention and just chose Europe last week when I plugged the keyboard first time. I needed to pick ANSI. You're correct MacOS allows for different layouts per keyboard and I selected the wrong one. Thanks, now it works!
[SOLVED] &kp GRAVE yields § instead of `