Crates.io | karaconv |
lib.rs | karaconv |
version | 0.3.0 |
source | src |
created_at | 2018-03-16 19:15:14.234582 |
updated_at | 2018-03-16 20:59:46.700997 |
description | Converter from Karabiner to Karabiner-Elements configuration format |
homepage | |
repository | https://github.com/durka/karaconv |
max_upload_size | |
id | 56037 |
size | 72,617 |
Karabiner was a very flexible keyboard/mouse remapping program that ran on macOS up to 10.11. Karabiner-Elements is its replacement, and it does mostly the same thing. But there was no way to migrate your old configuration. Until now.
This program converts configuration files from Karabiner (private.xml
) to Karabiner-Elements (karabiner.json
).
Caveats:
private.xml
is documented, but it is sometimes vague or inconsistentkarabiner.json
is completely undocumentedprivate.xml
. It doesn't support the entire format.If you try karaconv
and it can't parse your private.xml
, please post an issue (or pull request)!
If you have Rust and Cargo installed, you can simply run cargo install karaconv
.
Otherwise, you can download the binary from the Releases tab.
First, you need to find private.xml
. On my machine it's in ~/Library/Application Support/Karabiner
. You can find it by opening Karabiner Preferences (the old one), going to the "Misc & Uninstall" tab, and clicking on "Open private.xml". This will open Finder to the folder containing private.xml
.
Next, find karabiner.json
. There's no comparable way to open it from Karabiner-Elements Preferences, but I assume (again in the absence of documentation) that it is always in ~/.config/karabiner
.
Now you can run the converter:
karaconv -i /path/to/private.xml -o /path/to/karabiner.json
This will add all configuration from private.xml
into karabiner.json
(overwriting any Complex Modifications with the same name, which is helpful if you edit private.xml
and then run the converter again). The old karabiner.json
will be backed up first, but you can pass -n
if you want to just see the new JSON without having it printed anywhere.