ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.84k stars 487 forks source link

Add method to export current GUI config to `.amethyst.yml` #1283

Open jose-elias-alvarez opened 2 years ago

jose-elias-alvarez commented 2 years ago

Is your feature request related to a problem? Please describe. First of all, thank you for your work on Amethyst - it's a key part of my macOS workflow.

I want to migrate my current GUI config to an .amethyst.yml file so that I can store it with my other dotfiles. However, all of my keybinds are customized, and I use a whitelist to determine which apps to manage, so the conversion process is time-consuming (to the point that I haven't yet gotten around to it and am instead opening this issue, since I'm sure others are in the same boat).

Describe the solution you'd like A method to generate an .amethyst.yml file containing the current configuration values from the GUI.

Describe alternatives you've considered /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info is close, but it's not formatted as yaml and doesn't seem to contain info about keybinds. Perhaps there's another flag I'm not aware of?

Additional context This is related to #1217 but is a bit different, since the goal is not to export to an arbitrary config file but rather to use the existing yaml config format.

rbutera commented 2 years ago

I was about to create an issue asking how to sync amethyst config across multiple machines but stumbled upon this one.

Surprised this feature isn't already a part of amethyst, especially because looking through the issue history I can infer that Amethyst once had dotfile-based configuration, but it is unclear why this was dropped in favour of the current paradigm.

I hope I don't have to try Yabai as an alternative to amethyst that can sync across machine, because I love the simplicity of amethyst.

ctejada10 commented 2 years ago

I use https://github.com/lra/mackup to backup/sync Amethyst and my other apps, though I understand that's only a Mac option. Just thought I'd share!

jose-elias-alvarez commented 2 years ago

I use https://github.com/lra/mackup to backup/sync Amethyst and my other apps, though I understand that's only a Mac option. Just thought I'd share!

This is a good solution for backing up a user's Amethyst config, but part of the reason I'd like to be able to export it to a config file is to be able to place it under version control with the rest of my dotfiles.

To be clear, it's already possible to do this. This feature request is specifically about migrating my existing config to the new format.

ridicolos commented 2 years ago

Would love to see this be implemented

ctejada10 commented 2 years ago

I use https://github.com/lra/mackup to backup/sync Amethyst and my other apps, though I understand that's only a Mac option. Just thought I'd share!

This is a good solution for backing up a user's Amethyst config, but part of the reason I'd like to be able to export it to a config file is to be able to place it under version control with the rest of my dotfiles.

To be clear, it's already possible to do this. This feature request is specifically about migrating my existing config to the new format.

Yeah, completely agree! Would be better that way for sure!

michalspano commented 2 years ago

I'd love to see this feature too. 👍🏿

yahiaelgamal commented 1 year ago

Same, this would be a great feature!

gozes commented 1 year ago

I would love to see this as well.

brian-gee commented 1 year ago

This feature would make setting up my new workstations a lot easier.

ddarbyson commented 1 year ago

Same here!

silveiralexf commented 5 months ago

I use https://github.com/lra/mackup to backup/sync Amethyst and my other apps, though I understand that's only a Mac option. Just thought I'd share!

Hey there, just leaving this issue here in the thread for awareness about mackup -- since I just got hit by this :-(

https://github.com/lra/mackup/issues/1913#issuecomment-2134353989

SeniorMars commented 4 months ago

Are there any relevant files you would need to check out if you wanted to do a PR for this?