Live on-screen keyboard overlay that mirrors your active QMK/Vial/ZMK layers in real time.
Live on-screen keyboard overlay that mirrors your active QMK/Vial/ZMK layers in real time.
KeyPeek provides a live on-screen overlay with an integrated keymap editor for your keyboard. The overlay updates instantly to mirror active base and momentary layers, which is especially useful when learning complex layouts or using boards with missing legends. Keys can be remapped directly from the overlay, sending keycode and behavior updates to the device on the fly. KeyPeek currently supports QMK, Vial, and ZMK keyboards.
KeyPeek requires a small firmware module because stock QMK/Vial/ZMK firmware does not expose live layer-change events. The module adds that event stream over the device connection, so the overlay stays in sync with your active layers in real time.
In your QMK userspace (or qmk_firmware) root, add the module repo:
mkdir -p modules
git submodule add https://github.com/srwi/qmk-modules.git modules/srwi
git submodule update --init --recursiveIn your keymap folder, add srwi/keypeek_layer_notify to keymap.json:
{
"modules": [
"srwi/keypeek_layer_notify"
]
}In the same keymap folder, enable RAW HID and VIA in rules.mk:
RAW_ENABLE = yes
VIA_ENABLE = yesBuild and flash your firmware:
qmk compile -kb -km QMK only: Export layout information to keyboard_info.json:
qmk info -kb -m -f json > keyboard_info.jsonThis last step is only required for QMK keyboards, because VIA does not provide physical layout data directly over the connection. Vial keyboards do not require this step, as the layout data is transmitted when connecting the keyboard to KeyPeek.
Add the KeyPeek module to your zmk-config/config/west.yml:
manifest:
remotes:
- name: zmkfirmware
url-base: https://github.com/zmkfirmware
- name: zzeneg # raw_hid_adapter # [!NOTE]If the keyboard has been paired via Bluetooth before enabling raw HID support, re-pairing may be necessary to allow the new communication channel.
Devices are scanned when the app starts. For QMK you will be prompted to select the keyboard_info.json generated from your keymap when you connect. For Vial and ZMK, just select the connected device from the dropdown, since they provide layout information directly.
While the settings window is open, clicking any key on the overlay opens the key editor. From there keycodes and behaviors can be selected from categorized lists or found using the search bar. You can switch between layers using the buttons at the top of the editor or click another key on the overlay to change the selection. Key changes are sent directly to the keyboard over the connection.
If you're enjoying KeyPeek, I'd be truly grateful for your support! You can show your appreciation by giving a star on GitHub or making a donation:
Parts of this project are based on code from the VIA project, which is licensed under the GNU General Public License v3.0.
No open issues yet, or sync has not completed.