Skip to content
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

config for 2 device ids with the same keys #102

Open
tonik31 opened this issue Jan 26, 2024 · 2 comments · May be fixed by #101
Open

config for 2 device ids with the same keys #102

tonik31 opened this issue Jan 26, 2024 · 2 comments · May be fixed by #101
Labels
enhancement New feature or request

Comments

@tonik31
Copy link

tonik31 commented Jan 26, 2024

Any way to combine this configs?
Devices both have keys NP1 NP3 NP6, that need to be remapped to different keys according to device ids.

GLOBAL IniVersion wow
GLOBAL ActiveConfigOnStartup 1
GLOBAL StartInTraybar

[CONFIG_1]
OPTION configName = fang
OPTION Debug
OPTION IncludeDeviceID 1038

ALPHA_FROM  F7 F5 M V RET LEFT  DEL NP6 F9 / NP1 NP3
ALPHA_TO    -  T  G C Y   SPACE `   F5  M  Z 1   3
ALPHA_END

COMBO    E0LSHF		[.... .... ....] > key (=)
REWIRE PRINT NOP # no operation

REWIRE C LALT
REWIRE LALT F4

#IncludeDeviceID:258a ALPHA_FROM  NP1 NP2 NP3 NP4 NP5 NP6 NP7 NP8 NP9 NP0 NP+ NP-
#IncludeDeviceID:258a ALPHA_TO    F1  F2  F3  F4  F5  F6  F7  F8  F9  F10 F11 F12
#IncludeDeviceID:258a ALPHA_END


[CONFIG_2]
OPTION configName = liong
OPTION Debug
OPTION IncludeDeviceID 258a

ALPHA_FROM  NP1 NP2 NP3 NP4 NP5 NP6 NP7 NP8 NP9 NP0 NP+ NP-
ALPHA_TO    F1  F2  F3  F4  F5  F6  F7  F8  F9  F10 F11 F12
ALPHA_END

@cajhin
Copy link
Owner

cajhin commented Jan 26, 2024

No that's not possible. I might implement a new option to automatically switch configs when the device ID changes.
Like:

[CONFIG_1]
OPTION SwitchOnDeviceID 1038
...config for 1038...

When id 258a is active, then you press a key on 1038, capsicain will automatically switch to the first layer that contains OPTION SwitchOnDeviceID 1038 (if there is at least one).

That way, you basically can assign config1 to a keyboard1 and config2 to keyboard2.

Would that solve your problem?

@tonik31
Copy link
Author

tonik31 commented Jan 26, 2024

Yes, I think, it would be a good option for this problem. Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants