jqno / gnome-happy-appy-hotkey

GNOME Shell extension to assign hotkeys to applications to give them focus or launch them
GNU General Public License v3.0
8 stars 1 forks source link

Feature Request: ability to export and import hotkeys #7

Closed dmnmsc closed 7 months ago

dmnmsc commented 7 months ago

I use more than one computer and I'd like to have the same shortcuts in both of them.

I miss an option to export and import shortcuts

jqno commented 7 months ago

Good point. Fortunately, Gnome already has a program called dconf for this.

Open a terminal and run this command:

dconf dump /org/gnome/shell/extensions/happy-appy-hotkey/ > happy-appy-hotkey-settings.dconf

You can save the happy-appy-hotkey-settings.dconf file somewhere safe. When you need to import them again, you can run this:

dconf load /org/gnome/shell/extensions/happy-appy-hotkey/ < happy-appy-hotkey-settings.dconf

Your settings should take effect immediately.

I've added this to the readme as well, so other people can benefit too.

dmnmsc commented 7 months ago

That's true! But maybe an option in the GUI settings would make the process easier for non-techie people.

Anyway, thanks for the tip!

jqno commented 7 months ago

True, that would certainly be nice to have, but I'm afraid I won't be able to get to it any time soon, sorry about that...

dmnmsc commented 7 months ago

Don't worry! This extension made my day, month and year. Thank you very much!

jqno commented 7 months ago

I'm happy to hear that by scratching my own itch, I've also been able to help you! 😄