-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
number of macros #787
Comments
Can you elaborate on your use case? The limits were intelligently chosen to keep configs under a certain size with the goal of ultimately supporting embedded platforms. |
I came up with the alternative of replacing the symbolic link to |
Thanks a lot for your answer. I solved my issue concerning the number of macros by modifying the behaviour of oneshotm directly in the source code so that I need less of them : im my version the clear_oneshot function is called before switching to the oneshot layer. This matters only when oneshotm is used to go to a layer when another oneshotm is defined. Here is the change i did in keyboard.c (im not a C programmer at all, but it seems to work) : The full explanation, is that im developing my own keyboard layout, that uses the concept of alternate keys. So in my config, I have a several keys associated with oneshotm macro. To give you an example, lets says we want that typing aa output au and that typing ee output eo : [main] [layer_a] [layer_e] typing aa -> outputs au as expected So here we would need to add another oneshotm in the config file to prevent this to happen : [main] [layer_a] [layer_e] In other words if we have N keys associated with a oneshotm, we will need to N*N oneshotm in our config file, which requires lot of oneshotm macros. The other alternative, is to modify oneshotm as I did. |
@rvaiya I'm not sure, but is it possible to write a patch file that removes or extends the limits on the number of layers and amount of key definitions, assuming a typical x86-64 system with plenty of memory, etc.? |
|
First thanks a lot for your work on keyd, I cannot live without it :)
I just realized that the number of macros is limited to 256. Would it be possible to increase this limit to 512 or why not even 1024 ?
The text was updated successfully, but these errors were encountered: