p0deje / Maccy

Lightweight clipboard manager for macOS
https://maccy.app
MIT License
11.37k stars 490 forks source link

Is there a way to sync settings between computers? #655

Open borekb opened 8 months ago

borekb commented 8 months ago

I'm using multiple MacBooks and have Maccy installed on all of them as it's a great utility ❤️!

Is there a way to automatically or semi-automatically sync settings between my computers? For example, I usually want to set the history length to some higher number or have "Avoid taking application focus" selected, right now, I do this manually but I don't remember all the settings that I usually want to set so if this could be automated somehow, it would help.

p0deje commented 8 months ago

There is currently no way to sync settings, though it should be possible to use https://github.com/ArtSabintsev/Zephyr to automatically sync in iCloud. If anyone is eager to try implementing this, I would happily merge the PR:

  1. We need to a checkbox "Sync preferences in iCloud" in "General" disabled by default.
  2. Once enabled, all UserDefaults should be synced via Zephyr except for: a. ignoreEvents b. ignoreOnlyNextEvent c. migrations
gibfahn commented 3 weeks ago

Reading and writing defaults has worked pretty well for me (defaults read org.p0deje.Maccy, then defaults write commands, for example saved in a bash script checked in to git in your dotfiles repo). I find I have to have that kind of automation anyway because many macOS system defaults need to be set that way.