Karabiner-Element is for the mac keyboard key mapping.

https://github.com/tekezo/Karabiner-Elements

Karabiner-Element's config file is in

~/.config/karabiner/assets/complex_modifications

You can put these json files there, then

Open Complex Modifications -> Rule -> Add Rule