Karabiner config generator
DSL to easily modify Karabiner configuration
The idea is to make a small language with first class support for variables, sticky key and simultaneous key definitions that generates Karabiner JSON.
The script is a modified version of a ruby script by Tekezo.
The included config contains my own private keyboard configuration. To generate it and add it to Karabiner Elements, run this command:
ruby call.rb | pbcopy Or you can download modd and run modd to automatically generate the rules on any file changes including config.rb.
This will put Karabiner JSON of all the rules in your clipboard. You can then paste it inside Karabiner config file found in ~/.config/karabiner/karabiner.json in-between rules [] block.
In future this will be automated even further so you will never have to be dealing with raw JSON of karabiner.json and can effortlessly change your keyboard config on the fly with a nice DSL.
Support
There is a Telegram group you can join to ask questions and build the most awesome DSL for describing keyboard configuration.
Related
Contributing
Suggestions and pull requests are highly encouraged!
License
MIT © Nikita Voloboev