New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export and import Spectacle preferences #45

Closed
eczarny opened this Issue May 5, 2012 · 12 comments

Comments

Projects
None yet
8 participants
@eczarny
Copy link
Owner

eczarny commented May 5, 2012

It should be possible to export and import Spectacle's hot keys.

@exalted

This comment has been minimized.

Copy link

exalted commented Nov 4, 2012

iCloud sync maybe instead?

@icecreammatt

This comment has been minimized.

Copy link
Contributor

icecreammatt commented Dec 31, 2012

Since the app is no longer going to be in the AppStore I'm guessing we cannot use iCloud. What about syncing with Dropbox?

@eczarny

This comment has been minimized.

Copy link
Owner Author

eczarny commented Jan 26, 2013

I like the idea of using Dropbox. Something I will need to investigate.

@s10wen

This comment has been minimized.

Copy link

s10wen commented Jul 23, 2013

I'd like a way to do this via an .osx file e.g. for the SizeUp.app you can do:

# Start SizeUp at login
defaults write com.irradiatedsoftware.SizeUp StartAtLogin -bool true

# Don’t show the preferences window on next start
defaults write com.irradiatedsoftware.SizeUp ShowPrefsOnNextStart -bool false

After some digging I guess, start at login would be:

defaults write com.divisiblebyzero.Spectacle StartAtLogin -bool true

But not sure how to assign custom shortcuts. Any ideas please?

@njam

This comment has been minimized.

Copy link

njam commented Sep 15, 2013

I would be interested in that as well.
Unfortunately it doesn't seem to be possible easily. The bindings are stored as "data" in the plist, probably using this serialization code:

        NSData *hotKeyData = [NSKeyedArchiver archivedDataWithRootObject: hotKey];
        NSString *hotKeyName = [hotKey hotKeyName];

        if (![hotKeyData isEqualToData: [userDefaults dataForKey: hotKeyName]]) {
            [userDefaults setObject: hotKeyData forKey: hotKeyName];
        }

Maybe providing a command line interface to set the bindings would be useful?

@s10wen

This comment has been minimized.

Copy link

s10wen commented Sep 15, 2013

@eczarny sent me an app that works out the code for the key press, maybe it's worth putting it online @eczarny to help others?

@jsnmrs

This comment has been minimized.

Copy link

jsnmrs commented Oct 22, 2014

@eczarny I'm interested in the app you sent to @s10wen that will identify the code for the key press. I'd like to build my preferences into my dotfiles. Could you post or send that app to me? Cheers

@s10wen

This comment has been minimized.

Copy link

s10wen commented Oct 23, 2014

@jsnmrs I found the app, want to Skype me (s10wen) and I'll send it over to you.

@eczarny wondering if it's worth adding this to your site if other's are finding it useful? Let me know what you think / if I can help.

@mathiasbynens

This comment has been minimized.

Copy link

mathiasbynens commented Mar 2, 2015

Instead of an app, here’s a simple Bash script that extracts the current configuration: mathiasbynens/dotfiles#507 (comment)

@s10wen

This comment has been minimized.

Copy link

s10wen commented Mar 2, 2015

@pozix604

This comment has been minimized.

Copy link

pozix604 commented Apr 16, 2015

+1 for proper method to import/export settings, preferably accessible via command line.

@eczarny

This comment has been minimized.

Copy link
Owner Author

eczarny commented Aug 13, 2015

Closing in favor of #424.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment