r/Keychron • u/DiGiqr • Mar 11 '24
K10 Pro SW question: Swapping keymapping profiles?
Hello,
I have questions about software capabilities (I'm near-future K10 Pro buyer).
Is it possible to have multiple profiles and switch between them using FN+Somekey? Is that layers in VIA?
Some games doesn't support mapping to Numblock or they mix Numblock with Arrows/Control block. Or they just have hardcoded action to Enter key without way to rebind action to another key.
My wish is to have 2 or 3 profiles:
- Default profile (with some default color)
- Gaming mapping 1 (with different color)
- Gaming mapping 2 (with another color)
Can I do that using default VIA app? Or only using QMK? I didn't have chance to use these applications because they require keyboard. And I can't find keyboard in config.qmk.fm.
2
u/DiGiqr Mar 29 '24 edited Mar 29 '24
Thanks everyone for help
Custom layers
I cannibalized Mac profiles, switch on keyboard is set to Mac. Now I have
I'm using
TO(0),TO(1)andTO(2)to switch between default and custom profiles. That will enable layer and default layer. So Layer 1 and 2 will not be active at same time.Tip: Map
LT(3,KC_APP)to menu/profile key. You can use that key for hold-FN layer and it will still act as Menu for single taps.Building custom firmware
I'm using QMK MSYS with Keychron wireless_playground branch.
Tips:
make keychron/k10_pro/ansi/rgb:via:flash. Note that via. Variant with default does not support VIA because it will build different folderColors, I want colors
Bad: I it not native feature, I had to modify some files. Source.
I placed custom function into
keyboards/keychron/k10_pro/ansi/rgb/keymaps/via/keymap.ckeyboards/keychron/bluetooth/factory_test.c. You have to comment that function out.Default layer have nice color schema that I can customize using shortcuts/VIA. Custom layers are Yellow and Green.
I hope this will help for future me, and maybe others too.
2
u/PeterMortensenBlog V Mar 11 '24 edited Mar 14 '24
Re "have multiple profiles and switch between them using Fn + Somekey" Yes, through layers.
But you would probably need more than two layers (or four if you cannibalise the two Mac layers). Via doesn't have any problems with more than the default four number of layers (though a Via configuration saved under four layers does no longer load under a different number of layers (but see below)). For instance, I have six layers total on my K10 Pro, and it works fine in Via.
That is possible through some relatively simple changes to the source code:
And compiling and flashing.
It is easiest to do this early as saved Via configurations become invalidated by this change (though it is possible to manually patch them). Unlike QMK keyboards based on AVR, this keyboard doesn't have any real resource limitations, so you can just start with a large number of layers.
See also this Reddit post.
Note that the latest (and actually greatest) source code is now (probably) in Git branch "wireless_playground", not Git branch "bluetooth_playground" (as you may find in older references). That is (currently) in Keychron's fork, not the official QMK repository. (After cloning, it is usually necessary to first change to the appropriate Git branch ("wireless_playground"). And sometimes getting the Git submodules is necessary (but probably not for the K10 Pro))
2
u/Pierrozek Mar 11 '24
QMK/VIA keyboards may NOT be best fit for use scenarios you describe - you may get better PER APP config with "gaming" Logitech G keyboards. Standard firmware Keychron keyboards are limited to 4 layers (basic + 3 alternate) and keyboard doesn't sync with profile app as there is no profile app. Of course you can save multiple configs in VIA and reload it before launching a game, but it isn't automated by software.
QMK/VIA keyboards are very flexible in terms of what is mapped to your keyboard and how, some offers up to 32 layers, but Keychron chose to implement limitation of 4.
Logitech gaming keyboards rely on software to map and change your keyboard profiles per-app basis, but the actual logitech keyboards is usually DUMB (compared to QMK and most features are implemented in driver/app). Your scenarios are per-app. You may change your expectations or your target keyboard.