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

Migrating from AGSv1 to AGSv2 (help wanted) #1092

Open
2 of 4 tasks
clsty opened this issue Feb 8, 2025 · 8 comments
Open
2 of 4 tasks

Migrating from AGSv1 to AGSv2 (help wanted) #1092

clsty opened this issue Feb 8, 2025 · 8 comments
Assignees
Labels
FEATURE Feature advice/request help wanted Extra attention is needed

Comments

@clsty
Copy link
Collaborator

clsty commented Feb 8, 2025

What would you like to be added?

Currently we're using AGSv1, which works fine, but AGSv2 is released and maybe we're able to migrate to AGSv2 with acceptable efforts if lucky.

How will it help?

Useful links

How to achieve

  • Rename the executable of AGSv1 from ags to agsv1 so that it will not conflict with the ags of AGSv2.
  • Create .config/agsv2 and install AGSv2, use killall agsv1 ags ydotool; ags run -d $XDG_CONFIG_HOME/agsv2 & to run AGSv2 for developing while keeping AGSv1 still working.
  • (MAIN MISSION) Gradually implement codes inside .config/ags into .config/agsv2.
  • Remove .config/ags and AGSv1, rename .config/agsv2 to .config/ags to apply the changes.
@clsty clsty self-assigned this Feb 8, 2025
@clsty clsty added the help wanted Extra attention is needed label Feb 8, 2025
@clsty clsty pinned this issue Feb 8, 2025
@nonetrix
Copy link

nonetrix commented Feb 8, 2025

Plan to migrate to GTK-4 as well out of curiosity? Benifit is mainly GPU acceleration and better CSS support for what that's worth

@clsty clsty added the FEATURE Feature advice/request label Feb 9, 2025
@clsty clsty changed the title [Feature] Migrating from AGSv1 to AGSv2 Migrating from AGSv1 to AGSv2 Feb 9, 2025
@clsty clsty changed the title Migrating from AGSv1 to AGSv2 Migrating from AGSv1 to AGSv2 (help wanted) Feb 9, 2025
clsty added a commit that referenced this issue Feb 10, 2025
and switch bin name for [preparing migrating to agsv2](Aylur/ags#618 (comment))
@clsty
Copy link
Collaborator Author

clsty commented Feb 10, 2025

I've made the preparation for developing for migration to AGSv2.

The AGSv1 executable is now renamed from ags to agsv1.
For a proper update, run (i.e. do not skip) the following steps in install.sh:

  • handle-deprecated-dependencies
  • install-local-pkgbuild ./arch-packages/illogical-impulse-agsv1 --needed
  • rsync -av --delete --exclude /user_options.js .config/ags/ ~/.config/ags/
  • rsync -av --delete --exclude /custom --exclude /hyprlock.conf --exclude /hypridle.conf --exclude /hyprland.conf .config/hypr/ ~/.config/hypr/

@end-4 I don't know your plan, but I've made the preparation in case you are willing to start developing on AGSv2 someday. As for futher preparation for developing on your computer, my suggestions are as follows:

  • Install AUR package aylurs-gtk-shell or aylurs-gtk-shell-git which provides executable ags of AGSv2.
  • Set a keybind inside ~/.config/hypr/custom/keybinds.conf such as:
bindr = SuperShift, R, exec, killall agsv1 ags ydotool; ags run -d $XDG_CONFIG_HOME/agsv2 &

Which provides a quick shortcut to switch to or restart AGSv2 (with configs inside ~/.config/agsv2).

@Pharmaracist
Copy link
Contributor

Pharmaracist commented Feb 11, 2025

just a question why should we migrate like is it performance issue or just to be updated with aylur stuff and do we need to write the config from scratch or just change some lines and does astal bring any thing new like hot-changing

@clsty
Copy link
Collaborator Author

clsty commented Feb 11, 2025

just a question why should we migrate like is it performance issue or just to be updated with aylur stuff and do we need to write the config from scratch or just change some lines and does astal bring any thing new like hot-changing

I've already listed 2 reasons in the beginning:

@Pharmaracist
Copy link
Contributor

so do we need to rewrite everything from scratch since i saw that we should ?

@clsty
Copy link
Collaborator Author

clsty commented Feb 11, 2025

so do we need to rewrite everything from scratch since i saw that we should ?

idk, probably. See "Useful links" at the beginning for reference.

@enessmr
Copy link

enessmr commented Feb 15, 2025

Plan to stay at AGS v1 so it's easier to code?

@clsty
Copy link
Collaborator Author

clsty commented Feb 16, 2025

Plan to stay at AGS v1 so it's easier to code?

That's also an option but AGSv1 could be probably not working in future, since it needs some system packages as dependencies. Though there could be a workaround like using a container or using Nix/Guix...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEATURE Feature advice/request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants