Karabiner-elements: Can I export/import configs between machines?

Created on 13 Apr 2017  路  11Comments  路  Source: pqrs-org/Karabiner-Elements

Or allow syncing config file through dropbox, like the Alfred do?

Most helpful comment

I guess you can by placing ~/Dropbox/karabiner/karabiner.json and symlinking ~/Dropbox/karabiner to ~/.config/karabiner, but if you deal with multiple profiles switching your current profile on one machine will affect others.

All 11 comments

I guess you can by placing ~/Dropbox/karabiner/karabiner.json and symlinking ~/Dropbox/karabiner to ~/.config/karabiner, but if you deal with multiple profiles switching your current profile on one machine will affect others.

It is in ~/.config...you save my day, thx

@knu It worked. Thank you!

This works, it would still be nice to have the old export/import feature back

This works but not ideal. I link the json file from my backup (think dropbox) into ~/.config/karabiner/karabiner.json, but it turns out that karabiner overwrites that file (not update) every time it makes a change. so if I make a change, the link is now broken.

Create a symlink ~/.config/karabiner instead of ~/.config/karabiner/karabiner.json

Example:
https://pqrs.org/osx/karabiner/document.html#configuration-file-path

@tekezo that folder has a lot of files that I am not interested in adding to git(I store the conf in my dotfiles repo in github)

@karthikbeam Create karabiner directory into your dotfiles repo and move karabiner.json into karabiner/karabiner.json, then symlink to karabiner directory.

Added that and the below in my gitignore to get this working without having the other files (backups, assets) messing up my git status / history

karabiner/*
!karabiner/karabiner.json

I misunderstood your desire.
I just understand that you didn't want to include automatic_backups.
Your gitignore is right way to do it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

impala75 picture impala75  路  3Comments

Joilence picture Joilence  路  3Comments

Farzy picture Farzy  路  3Comments

chaucy picture chaucy  路  3Comments

rcaputo picture rcaputo  路  3Comments