Skip to content
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

Moving over from ags v1? #618

Closed
dtomvan opened this issue Nov 14, 2024 · 7 comments
Closed

Moving over from ags v1? #618

dtomvan opened this issue Nov 14, 2024 · 7 comments

Comments

@dtomvan
Copy link

dtomvan commented Nov 14, 2024

I have a question: how would one go about moving their config over to ags v2? Or do I need to basically refactor everything by hand? My nix updated to ags 2.0 and now I need to move over or rollback. I'd like to move my existing config.js to the new system, but I can't just call ags run sadly, because it expects jsx instead of normal js which defines GTK widgets...

@kurtbahartr
Copy link

kurtbahartr commented Nov 14, 2024

I have the exact same question before AGS is updated to v2 on the AUR. I don't to lose my entire desktop, which I worked on day and night just to get it to be the way I and a friend of mine are comfortable with recently, just because there's basically no documentation as to porting it.

Aylur and other AGS and Astal devs- How about making a porting guide like how Hyprland does it before releasing a new build? I'm sure it would be a breeze not just for other users but also you all too especially when there's just possible too much to port over.

@kotontrion
Copy link
Contributor

there were so many breaking changes. You will have to change basically every part in your config.

I recommend starting from scratch and use jsx.

The aur packages were already updates to v2. If you don't want to migrate yet, you can hold that package, so it won't get updated. I also made a pkgbuild which installs the latest version before v2 with a different name (agsv1) so you can use both version at the same time, which is useful for migrating.

@kurtbahartr
Copy link

kurtbahartr commented Nov 14, 2024

there were so many breaking changes. You will have to change basically every part in your config.

I recommend starting from scratch and use jsx.

Then it's about time I start reading the documentation this summer. :P

The aur packages were already updates to v2. If you don't want to migrate yet, you can hold that package, so it won't get updated. I also made a pkgbuild which installs the latest version before v2 with a different name (agsv1) so you can use both version at the same time, which is useful for migrating.

The first two sentences got me scared but then reading the next one made me give out a sigh of relief out loud! Thanks a lot for thinking that part! I should configure Diana's dotfiles to use that and let her know about this for the time being.

@dtomvan
Copy link
Author

dtomvan commented Nov 14, 2024

@kotontrion Thank you, that clarifies it for me. I guess I'll slowly migrate while keeping ags v1. I'll write a nix drv for it. If anyone (or this repo's flake) needs it, I'd be happy to help!

Sorry for the rushed issue description. I couldn't rebuild my home-manager config after the update, because agsNoTypes didn't exist anymore...

@kurtbahartr
Copy link

@dtomvan so, you planning to close this issue or..?

@dtomvan
Copy link
Author

dtomvan commented Nov 14, 2024

I can't convert it to a discussion, but if I could I would do that instead. Because I think people might want to discuss the v1->v2 migration... But there's no bug or problem to be discussed, so I guess this shouldn't be an open issue either.

@dtomvan
Copy link
Author

dtomvan commented Nov 14, 2024

Nevermind, there is also a discussion: #615 (comment)

This'll be a dup.

@dtomvan dtomvan closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
@Aylur Aylur pinned this issue Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants