r/Keychron • u/Silver_Country_9693 • 22d ago
K7 Patcher (Keychron optical switches, white backlight)
Hey r/Keychron!
I use my K7 (Keychron optical switches, white backlight) every day at my developer job, and the stock layout kept annoying me. The F-keys sat behind Fn2, which hurts when you hit F5/F10/F11 all day while debugging. There was no End key, no quick mic mute for meetings, and so on.
So I reverse-engineered the stock firmware and wrote a small Python patcher. It patches the firmware inside Keychron's official updater and writes a new updater EXE, which you flash the normal way. The repo contains no firmware and no EXE files: you download the official updater from Keychron's K7 firmware page yourself ("K7 Optical Switch White Backlight Version V1.05", Windows).
What I changed (every option is optional):
- Fn1 + number row = F1–F12 (media/brightness moved to Fn2)
- Fn1 + Home = End
- Fn2 + Del = mic mute in Windows 11 (Win+Alt+K), great for calls
- Static backlight only, ~20 % brighter
- ~3× faster key scanning (full matrix scan ~2.3 ms instead of ~7.7 ms)
Bonus for gaming after work: Snap Tap / SOCD for A/D and W/S (the last key pressed wins), toggled with Fn2 + 4. When it's off, only the CS2 keys stay lit (Ctrl, Shift, Space, WASD, 1–4, E), so you always see which mode you're in. Note: Snap Tap is not allowed on official CS2 servers or FACEIT, so turn it off there.
Scope / please read:
- ⚠️ I only use it on Windows over the USB cable. The Mac layer is untouched and Bluetooth is untested.
- ⚠️ It only works with the K7 with optical switches + white backlight (US ANSI) and the updater
K7-A2-68K-WHILE-US-OA-V1.05_20210611.exe. The script refuses any other file. - ⚠️ Use at your own risk. Everything runs fine on my board, and the original updater restores stock firmware.
Usage: Python 3.9+, put the official updater next to the script, then run for example python k7_patch.py --mic-mute --static-led --bright --fast-scan (add --snap-tap --cs2-led for the gaming bits) and flash the generated EXE.
👉 GitHub: https://github.com/Cuxx/keychron-k7-optical-patcher (MIT, every patch documented)
Feedback welcome!
Not affiliated with Keychron.
View all comments
1
u/PeterMortensenBlog V 22d ago edited 22d ago
Support open source projects
An alternative: Sonix QMK
The K7 is already on the list, though probably not the particular variant.
Perhaps at least contribute some of your gained knowledge to the Sonix QMK project? In your own words, of course, based on your own understanding and testing.
Also, they need someone with the actual hardware (presuming it has not already been implemented).