zmkfirmware / zmk

ZMK Firmware Repository
https://zmk.dev/
MIT License
2.82k stars 2.85k forks source link

Feature Request: OS Detection #2553

Open lyallcooper opened 1 month ago

lyallcooper commented 1 month ago

It would be nice if zmk offered a host OS detection feature (see QMK for example) to allow dynamic binding of keys or behavior depending on the OS of the host the keyboard is connected to.

My specific use case: I have a keyboard that I use with macOS and Windows. I have a layer where the modifier keys are in the normal Mac order (ctrl, opt, cmd) and a layer where the mods are in the normal Windows order (ctrl, win, alt). I currently default to the Mac layer, but manually switch to the Windows one whenever I connect the keyboard to the Windows machine. It would be nice if the keyboard could detect this on startup and set the appropriate keys on its own.