This is a template for managing your Karabiner-Elements configuration in Jsonnet.
-
Install the jsonnet command via
brew install jsonnet
. -
Clone this repository and paste and merge your
karabiner.json
intokarabiner.jsonnet
. Note that any pure JSON value is valid as a Jsonnet expression. -
Run
make
to generate thekarabiner.json
file and compare the diff with yourkarabiner.json
. -
Fix
karabiner.jsonnet
until the output matches yourkarabiner.json
. -
Profit from the power of Jsonnet!
Copyright (c) 2022-2023 Akinori Musha.
Licensed under the 2-clause BSD license. See LICENSE.txt
for details.
Visit GitHub Repository for the latest information.