macos-wm/.config/karabiner/compile.py

10 lines
196 B
Python
Executable File

#!/usr/bin/env python3
import sys
import yaml
import json
with open('karabiner.yaml') as in_f:
with open('karabiner.json', 'w') as out_f:
json.dump(yaml.load(in_f), out_f, indent=4)