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

10 lines
220 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, Loader=yaml.SafeLoader), out_f, indent=4)